mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Ups - that was not intended to be part of the commit.
This commit is contained in:
parent
64095b6610
commit
e49236bac6
@ -108,36 +108,22 @@ void run_vector_tests()
|
||||
}
|
||||
}
|
||||
|
||||
template <typename Scalar, int Storage>
|
||||
void run_resize_like_tests()
|
||||
{
|
||||
typedef Matrix<Scalar, Eigen::Dynamic, 1, Storage> MatrixType;
|
||||
|
||||
MatrixType m;
|
||||
|
||||
m = MatrixType::Random(5);
|
||||
m.conservativeResizeLike( MatrixType::Ones(2) );
|
||||
std::cout << m << std::endl;
|
||||
}
|
||||
|
||||
void test_conservative_resize()
|
||||
{
|
||||
run_resize_like_tests<int, Eigen::RowMajor>();
|
||||
run_matrix_tests<int, Eigen::RowMajor>();
|
||||
run_matrix_tests<int, Eigen::ColMajor>();
|
||||
run_matrix_tests<float, Eigen::RowMajor>();
|
||||
run_matrix_tests<float, Eigen::ColMajor>();
|
||||
run_matrix_tests<double, Eigen::RowMajor>();
|
||||
run_matrix_tests<double, Eigen::ColMajor>();
|
||||
run_matrix_tests<std::complex<float>, Eigen::RowMajor>();
|
||||
run_matrix_tests<std::complex<float>, Eigen::ColMajor>();
|
||||
run_matrix_tests<std::complex<double>, Eigen::RowMajor>();
|
||||
run_matrix_tests<std::complex<double>, Eigen::ColMajor>();
|
||||
|
||||
//run_matrix_tests<int, Eigen::RowMajor>();
|
||||
//run_matrix_tests<int, Eigen::ColMajor>();
|
||||
//run_matrix_tests<float, Eigen::RowMajor>();
|
||||
//run_matrix_tests<float, Eigen::ColMajor>();
|
||||
//run_matrix_tests<double, Eigen::RowMajor>();
|
||||
//run_matrix_tests<double, Eigen::ColMajor>();
|
||||
//run_matrix_tests<std::complex<float>, Eigen::RowMajor>();
|
||||
//run_matrix_tests<std::complex<float>, Eigen::ColMajor>();
|
||||
//run_matrix_tests<std::complex<double>, Eigen::RowMajor>();
|
||||
//run_matrix_tests<std::complex<double>, Eigen::ColMajor>();
|
||||
|
||||
//run_vector_tests<int>();
|
||||
//run_vector_tests<float>();
|
||||
//run_vector_tests<double>();
|
||||
//run_vector_tests<std::complex<float> >();
|
||||
//run_vector_tests<std::complex<double> >();
|
||||
run_vector_tests<int>();
|
||||
run_vector_tests<float>();
|
||||
run_vector_tests<double>();
|
||||
run_vector_tests<std::complex<float> >();
|
||||
run_vector_tests<std::complex<double> >();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user