aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sizeof.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-05-20 15:41:23 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-05-20 15:41:23 +0200
commitdd45c4805ced4ad8ead743875f42259e9b6a2795 (patch)
tree22ba6d80c2f8d60721e38adf579ffb6bba23d0f5 /test/sizeof.cpp
parent6ecd02d7ec85f07e02559cb311d4dd07e844a72d (diff)
* add a writable generic coeff wise expression (CwiseUnaryView)
* add writable .real() and .imag() functions
Diffstat (limited to 'test/sizeof.cpp')
-rw-r--r--test/sizeof.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/sizeof.cpp b/test/sizeof.cpp
index 6c0485ae1..c713afade 100644
--- a/test/sizeof.cpp
+++ b/test/sizeof.cpp
@@ -43,4 +43,7 @@ void test_sizeof()
CALL_SUBTEST( verifySizeOf(MatrixXi(8, 12)) );
CALL_SUBTEST( verifySizeOf(MatrixXcd(20, 20)) );
CALL_SUBTEST( verifySizeOf(Matrix<float, 100, 100>()) );
+
+ VERIFY(sizeof(std::complex<float>) == 2*sizeof(float));
+ VERIFY(sizeof(std::complex<double>) == 2*sizeof(double));
}