aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/test/kronecker_product.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2014-09-29 13:37:49 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2014-09-29 13:37:49 +0200
commit842e31cf5c8fd31f394156ada84a1aeeab89ef7e (patch)
treea21201247a051d28816713d31d92cabb53d14697 /unsupported/test/kronecker_product.cpp
parentabd3502e9ea3e659c39dd5edc17d6deabd26e048 (diff)
Let KroneckerProduct exploits the recently introduced generic InnerIterator class.
Diffstat (limited to 'unsupported/test/kronecker_product.cpp')
-rw-r--r--unsupported/test/kronecker_product.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/unsupported/test/kronecker_product.cpp b/unsupported/test/kronecker_product.cpp
index 753a2d417..02411a262 100644
--- a/unsupported/test/kronecker_product.cpp
+++ b/unsupported/test/kronecker_product.cpp
@@ -216,5 +216,17 @@ void test_kronecker_product()
sC2 = kroneckerProduct(sA,sB);
dC = kroneckerProduct(dA,dB);
VERIFY_IS_APPROX(MatrixXf(sC2),dC);
+
+ sC2 = kroneckerProduct(dA,sB);
+ dC = kroneckerProduct(dA,dB);
+ VERIFY_IS_APPROX(MatrixXf(sC2),dC);
+
+ sC2 = kroneckerProduct(sA,dB);
+ dC = kroneckerProduct(dA,dB);
+ VERIFY_IS_APPROX(MatrixXf(sC2),dC);
+
+ sC2 = kroneckerProduct(2*sA,sB);
+ dC = kroneckerProduct(2*dA,dB);
+ VERIFY_IS_APPROX(MatrixXf(sC2),dC);
}
}