Home | History | Annotate | Download | only in test

Lines Matching refs:num_elements

91 void run_test(int dim, int num_elements)
109 MatrixX src = MatrixX::Random(dim+1, num_elements);
110 src.row(dim) = Matrix<Scalar, 1, Dynamic>::Constant(num_elements, Scalar(1));
114 MatrixX cR_t_umeyama = umeyama(src.block(0,0,dim,num_elements), dst.block(0,0,dim,num_elements));
121 void run_fixed_size_test(int num_elements)
143 MatrixX src = MatrixX::Random(dim+1, num_elements);
144 src.row(dim) = Matrix<Scalar, 1, Dynamic>::Constant(num_elements, Scalar(1));
148 Block<MatrixX, Dimension, Dynamic> src_block(src,0,0,dim,num_elements);
149 Block<MatrixX, Dimension, Dynamic> dst_block(dst,0,0,dim,num_elements);
162 const int num_elements = internal::random<int>(40,500);
167 CALL_SUBTEST_1(run_test<MatrixXd>(dim, num_elements));
168 CALL_SUBTEST_2(run_test<MatrixXf>(dim, num_elements));
171 CALL_SUBTEST_3((run_fixed_size_test<float, 2>(num_elements)));
172 CALL_SUBTEST_4((run_fixed_size_test<float, 3>(num_elements)));
173 CALL_SUBTEST_5((run_fixed_size_test<float, 4>(num_elements)));
175 CALL_SUBTEST_6((run_fixed_size_test<double, 2>(num_elements)));
176 CALL_SUBTEST_7((run_fixed_size_test<double, 3>(num_elements)));
177 CALL_SUBTEST_8((run_fixed_size_test<double, 4>(num_elements)));