SCM

[#6656] Error taking negation after kronecker product

Date:
2020-02-05 08:40
Priority:
3
State:
Open
Submitted by:
Chun Fung (Jackson) Kwok (kcf.jackson)
Assigned to:
Nobody (None)
Hardware:
None
Product:
None
Operating System:
None
Component:
None
Version:
None
Severity:
None
Resolution:
None
URL:
Summary:
Error taking negation after kronecker product

Detailed description
Hi,

I would like to report that there seems to be an unexpected error when one takes negation after taking the Kronecker product of two diagonal matrices. Here is a minimal example:

> - Matrix::Diagonal(2, 3) %x% Matrix::Diagonal(2, 3)
4 x 4 sparse Matrix of class "dtTMatrix"

[1,] -9 . . .
[2,] . -9 . .
[3,] . . -9 .
[4,] . . . -9

> - (Matrix::Diagonal(2, 3) %x% Matrix::Diagonal(2, 3))
Error in (function (cl, name, valueClass) :
‘factors’ is not a slot in class “dtTMatrix”

The example is tested on:
1. Mac OS X, R 3.6.1, Matrix 1.2-18, and
2. Ubuntu 18.04.3 LTS, R 3.6.2, Matrix 1.2-18

Thanks.

Comments:

No Comments Have Been Posted

Attached Files:

Changes

No Changes Have Been Made to This Item

Thanks to:
Vienna University of Economics and Business Powered By FusionForge