aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/lu.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-11-03 02:18:10 -0500
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-11-03 02:18:10 -0500
commitda363d997f1721ceaefcd946fb14e793074f88b9 (patch)
tree4ccc83796b09c4583a908526d926616056eab70d /test/lu.cpp
parentf975b9bd3eb0a862efef290a63a3d1d20a03c099 (diff)
introduce ei_xxx_return_value and ei_xxx_impl for xxx in solve,kernel,impl
put them in a new internal 'misc' directory
Diffstat (limited to 'test/lu.cpp')
-rw-r--r--test/lu.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/lu.cpp b/test/lu.cpp
index c46ca9130..954893651 100644
--- a/test/lu.cpp
+++ b/test/lu.cpp
@@ -49,8 +49,8 @@ template<typename MatrixType> void lu_non_invertible()
cols2 = cols = MatrixType::ColsAtCompileTime;
}
- typedef typename ei_fullpivlu_kernel_impl<MatrixType>::ReturnMatrixType KernelMatrixType;
- typedef typename ei_fullpivlu_image_impl <MatrixType>::ReturnMatrixType ImageMatrixType;
+ typedef typename ei_kernel_return_value<FullPivLU<MatrixType> >::ReturnMatrixType KernelMatrixType;
+ typedef typename ei_image_return_value<FullPivLU<MatrixType> >::ReturnMatrixType ImageMatrixType;
typedef Matrix<typename MatrixType::Scalar, Dynamic, Dynamic> DynamicMatrixType;
typedef Matrix<typename MatrixType::Scalar, MatrixType::ColsAtCompileTime, MatrixType::ColsAtCompileTime>
CMatrixType;
@@ -65,10 +65,10 @@ template<typename MatrixType> void lu_non_invertible()
createRandomMatrixOfRank(rank, rows, cols, m1);
FullPivLU<MatrixType> lu(m1);
+ std::cout << lu.kernel().rows() << " " << lu.kernel().cols() << std::endl;
KernelMatrixType m1kernel = lu.kernel();
- ImageMatrixType m1image = lu.image(m1);
+ ImageMatrixType m1image = lu.image(m1);
- // std::cerr << rank << " " << lu.rank() << std::endl;
VERIFY(rank == lu.rank());
VERIFY(cols - lu.rank() == lu.dimensionOfKernel());
VERIFY(!lu.isInjective());