mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
fix nomalloc_2 issues with ICC and gcc 4.0.1 (and speed up compilation ;) )
This commit is contained in:
parent
c201aabf3e
commit
8a38047ec5
@ -78,22 +78,23 @@ template<typename MatrixType> void nomalloc(const MatrixType& m)
|
||||
}
|
||||
}
|
||||
|
||||
template<typename Scalar>
|
||||
void ctms_decompositions()
|
||||
{
|
||||
const int maxSize = 16;
|
||||
const int size = 12;
|
||||
|
||||
typedef Eigen::Matrix<float,
|
||||
typedef Eigen::Matrix<Scalar,
|
||||
Eigen::Dynamic, Eigen::Dynamic,
|
||||
0,
|
||||
maxSize, maxSize> Matrix;
|
||||
|
||||
typedef Eigen::Matrix<float,
|
||||
typedef Eigen::Matrix<Scalar,
|
||||
Eigen::Dynamic, 1,
|
||||
0,
|
||||
maxSize, 1> Vector;
|
||||
|
||||
typedef Eigen::Matrix<std::complex<float>,
|
||||
typedef Eigen::Matrix<std::complex<Scalar>,
|
||||
Eigen::Dynamic, Eigen::Dynamic,
|
||||
0,
|
||||
maxSize, maxSize> ComplexMatrix;
|
||||
@ -137,6 +138,6 @@ void test_nomalloc()
|
||||
CALL_SUBTEST_3(nomalloc(Matrix<float,32,32>()) );
|
||||
|
||||
// Check decomposition modules with dynamic matrices that have a known compile-time max size (ctms)
|
||||
CALL_SUBTEST_4(ctms_decompositions());
|
||||
CALL_SUBTEST_4(ctms_decompositions<float>());
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user