mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-30 17:40:05 +08:00
Set matrix to zero before inserting entries (partially fixes bug #539).
This commit is contained in:
parent
8321b7ae74
commit
eac676ff6c
@ -124,9 +124,11 @@ void test_kronecker_product()
|
||||
CALL_SUBTEST(check_kronecker_product(SM_ab2));
|
||||
|
||||
// test kroneckerProduct(DM,SM,SM)
|
||||
SM_ab.setZero();
|
||||
SM_ab.insert(0,0)=37.0;
|
||||
SM_ab = kroneckerProduct(DM_a,SM_b);
|
||||
CALL_SUBTEST(check_kronecker_product(SM_ab));
|
||||
SM_ab2.setZero();
|
||||
SM_ab2.insert(0,0)=37.0;
|
||||
SM_ab2 = kroneckerProduct(DM_a,SM_b);
|
||||
CALL_SUBTEST(check_kronecker_product(SM_ab2));
|
||||
|
Loading…
Reference in New Issue
Block a user