diff --git a/test/product_trmv.cpp b/test/product_trmv.cpp index 76484dce6..0f676beca 100644 --- a/test/product_trmv.cpp +++ b/test/product_trmv.cpp @@ -94,7 +94,7 @@ void test_product_trmv() CALL_SUBTEST_2( trmv(Matrix()) ); CALL_SUBTEST_3( trmv(Matrix3d()) ); s = internal::random(1,EIGEN_TEST_MAX_SIZE/2); - CALL_SUBTEST_4( trmv(MatrixXcf(s,internal::random(1,EIGEN_TEST_MAX_SIZE/2))) ); + CALL_SUBTEST_4( trmv(MatrixXcf(s,s)) ); s = internal::random(1,EIGEN_TEST_MAX_SIZE/2); CALL_SUBTEST_5( trmv(MatrixXcd(s,s)) ); s = internal::random(1,EIGEN_TEST_MAX_SIZE);