diff options
author | Gael Guennebaud <g.gael@free.fr> | 2019-01-13 17:54:30 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2019-01-13 17:54:30 +0100 |
commit | f566724023e1a82be7fecfe0639e908772d3cea6 (patch) | |
tree | 220a11c99f3b337aa5d3ef3bc02af79443a4cc9b /test/lu.cpp | |
parent | 9005f0111f3b5f4d29939ee67a5b516b0585455f (diff) |
Fix StorageIndex FIXME in dense LU solvers
Diffstat (limited to 'test/lu.cpp')
-rw-r--r-- | test/lu.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lu.cpp b/test/lu.cpp index 24bea784a..46fd60555 100644 --- a/test/lu.cpp +++ b/test/lu.cpp @@ -18,6 +18,8 @@ typename MatrixType::RealScalar matrix_l1_norm(const MatrixType& m) { template<typename MatrixType> void lu_non_invertible() { + STATIC_CHECK(( internal::is_same<typename FullPivLU<MatrixType>::StorageIndex,int>::value )); + typedef typename MatrixType::RealScalar RealScalar; /* this test covers the following files: LU.h @@ -191,6 +193,8 @@ template<typename MatrixType> void lu_partial_piv() m1.setRandom(); PartialPivLU<MatrixType> plu(m1); + STATIC_CHECK(( internal::is_same<typename PartialPivLU<MatrixType>::StorageIndex,int>::value )); + VERIFY_IS_APPROX(m1, plu.reconstructedMatrix()); m3 = MatrixType::Random(size,size); |