| 207 | } |
| 208 | |
| 209 | void test_triangular() |
| 210 | { |
| 211 | int maxsize = (std::min)(EIGEN_TEST_MAX_SIZE,20); |
| 212 | for(int i = 0; i < g_repeat ; i++) |
| 213 | { |
| 214 | int r = internal::random<int>(2,maxsize); TEST_SET_BUT_UNUSED_VARIABLE(r) |
| 215 | int c = internal::random<int>(2,maxsize); TEST_SET_BUT_UNUSED_VARIABLE(c) |
| 216 | |
| 217 | CALL_SUBTEST_1( triangular_square(Matrix<float, 1, 1>()) ); |
| 218 | CALL_SUBTEST_2( triangular_square(Matrix<float, 2, 2>()) ); |
| 219 | CALL_SUBTEST_3( triangular_square(Matrix3d()) ); |
| 220 | CALL_SUBTEST_4( triangular_square(Matrix<std::complex<float>,8, 8>()) ); |
| 221 | CALL_SUBTEST_5( triangular_square(MatrixXcd(r,r)) ); |
| 222 | CALL_SUBTEST_6( triangular_square(Matrix<float,Dynamic,Dynamic,RowMajor>(r, r)) ); |
| 223 | |
| 224 | CALL_SUBTEST_7( triangular_rect(Matrix<float, 4, 5>()) ); |
| 225 | CALL_SUBTEST_8( triangular_rect(Matrix<double, 6, 2>()) ); |
| 226 | CALL_SUBTEST_9( triangular_rect(MatrixXcf(r, c)) ); |
| 227 | CALL_SUBTEST_5( triangular_rect(MatrixXcd(r, c)) ); |
| 228 | CALL_SUBTEST_6( triangular_rect(Matrix<float,Dynamic,Dynamic,RowMajor>(r, c)) ); |
| 229 | } |
| 230 | |
| 231 | CALL_SUBTEST_1( bug_159() ); |
| 232 | } |
nothing calls this directly
no test coverage detected