aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/lu.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-10-18 15:21:19 -0400
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-10-18 15:21:19 -0400
commit47eeb4038004b761db08b91cbb04b0b9403c4f18 (patch)
tree9691de7a716f4bd38ad852e4c588b8189b09850c /test/lu.cpp
parentd71c7f42d316266e6e2b534fa0534a423f9652ea (diff)
remove the m_originalMatrix member. Instead, image() now takes the original matrix as parameter. It was the only method to use it anyway. Introduce m_isInitialized.
Diffstat (limited to 'test/lu.cpp')
-rw-r--r--test/lu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lu.cpp b/test/lu.cpp
index 442b87f82..a08614e28 100644
--- a/test/lu.cpp
+++ b/test/lu.cpp
@@ -38,7 +38,7 @@ template<typename MatrixType> void lu_non_invertible()
LU<MatrixType> lu(m1);
typename ei_lu_kernel_impl<MatrixType>::ReturnMatrixType m1kernel = lu.kernel();
- typename ei_lu_image_impl <MatrixType>::ReturnMatrixType m1image = lu.image();
+ typename ei_lu_image_impl <MatrixType>::ReturnMatrixType m1image = lu.image(m1);
// std::cerr << rank << " " << lu.rank() << std::endl;
VERIFY(rank == lu.rank());
@@ -88,7 +88,7 @@ template<typename MatrixType> void lu_invertible()
VERIFY(lu.isInjective());
VERIFY(lu.isSurjective());
VERIFY(lu.isInvertible());
- VERIFY(lu.image().lu().isInvertible());
+ VERIFY(lu.image(m1).lu().isInvertible());
m3 = MatrixType::Random(size,size);
m2 = lu.solve(m3);
VERIFY_IS_APPROX(m3, m1*m2);
@@ -104,7 +104,7 @@ template<typename MatrixType> void lu_verify_assert()
VERIFY_RAISES_ASSERT(lu.permutationP())
VERIFY_RAISES_ASSERT(lu.permutationQ())
VERIFY_RAISES_ASSERT(lu.kernel())
- VERIFY_RAISES_ASSERT(lu.image())
+ VERIFY_RAISES_ASSERT(lu.image(tmp))
VERIFY_RAISES_ASSERT(lu.solve(tmp))
VERIFY_RAISES_ASSERT(lu.determinant())
VERIFY_RAISES_ASSERT(lu.rank())