mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
extend product unit tests
This commit is contained in:
@@ -88,12 +88,16 @@ template<typename MatrixType> void trmv(const MatrixType& m)
|
||||
|
||||
void test_product_trmv()
|
||||
{
|
||||
int s;
|
||||
for(int i = 0; i < g_repeat ; i++) {
|
||||
CALL_SUBTEST_1( trmv(Matrix<float, 1, 1>()) );
|
||||
CALL_SUBTEST_2( trmv(Matrix<float, 2, 2>()) );
|
||||
CALL_SUBTEST_3( trmv(Matrix3d()) );
|
||||
CALL_SUBTEST_4( trmv(Matrix<std::complex<float>,23, 23>()) );
|
||||
CALL_SUBTEST_5( trmv(MatrixXcd(17,17)) );
|
||||
CALL_SUBTEST_6( trmv(Matrix<float,Dynamic,Dynamic,RowMajor>(19, 19)) );
|
||||
s = ei_random<int>(1,200);
|
||||
CALL_SUBTEST_4( trmv(MatrixXcf(s)) );
|
||||
s = ei_random<int>(1,200);
|
||||
CALL_SUBTEST_5( trmv(MatrixXcd(s,s)) );
|
||||
s = ei_random<int>(1,320);
|
||||
CALL_SUBTEST_6( trmv(Matrix<float,Dynamic,Dynamic,RowMajor>(s, s)) );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user