MCPcopy Create free account
hub / github.com/LucaFulchir/libRaptorQ / test_triangular

Function test_triangular

external/eigen3/test/triangular.cpp:209–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209void 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}

Callers

nothing calls this directly

Calls 3

triangular_squareFunction · 0.85
triangular_rectFunction · 0.85
bug_159Function · 0.70

Tested by

no test coverage detected