From ec5c608aa3caea7f14aa03e4e13041ee9e2664de Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 10 Jul 2009 16:10:03 +0200 Subject: Set of fixes and workaround to make sun studio more happy. Still remains the problem of alignment and vectorization. --- test/basicstuff.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/basicstuff.cpp') diff --git a/test/basicstuff.cpp b/test/basicstuff.cpp index 2f088988f..52aff93ee 100644 --- a/test/basicstuff.cpp +++ b/test/basicstuff.cpp @@ -107,7 +107,7 @@ template void basicStuff(const MatrixType& m) { VERIFY_IS_NOT_APPROX(m3, m1); } - + m3.real() = m1.real(); VERIFY_IS_APPROX(static_cast(m3).real(), static_cast(m1).real()); VERIFY_IS_APPROX(static_cast(m3).real(), m1.real()); @@ -121,16 +121,16 @@ template void basicStuffComplex(const MatrixType& m) int rows = m.rows(); int cols = m.cols(); - + Scalar s1 = ei_random(), s2 = ei_random(); - + VERIFY(ei_real(s1)==ei_real_ref(s1)); VERIFY(ei_imag(s1)==ei_imag_ref(s1)); ei_real_ref(s1) = ei_real(s2); ei_imag_ref(s1) = ei_imag(s2); VERIFY(s1==s2); - + RealMatrixType rm1 = RealMatrixType::Random(rows,cols), rm2 = RealMatrixType::Random(rows,cols); MatrixType cm(rows,cols); @@ -162,7 +162,7 @@ void test_basicstuff() CALL_SUBTEST( basicStuff(MatrixXcd(20, 20)) ); CALL_SUBTEST( basicStuff(Matrix()) ); CALL_SUBTEST( basicStuff(Matrix(10,10)) ); - + CALL_SUBTEST( basicStuffComplex(MatrixXcf(21, 17)) ); CALL_SUBTEST( basicStuffComplex(MatrixXcd(2, 3)) ); } -- cgit v1.2.3