aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/ReturnByValue.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-09-22 00:16:51 -0400
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-09-22 00:16:51 -0400
commit4f9e27034392d4f6744509e52f7b7d829e9070ce (patch)
tree863f9817a3b629d5ae3fbf47b7ec1d288052339c /Eigen/src/Core/ReturnByValue.h
parent0ad3494bd370ec992ac1eabaec60ea604ea14a29 (diff)
* make LU::kernel() and LU::image() also use ReturnByValue
* make them return zero vector in the degenerate case, instead of asserting (let's stick to the principle that we only assert on memory errors)
Diffstat (limited to 'Eigen/src/Core/ReturnByValue.h')
-rw-r--r--Eigen/src/Core/ReturnByValue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/ReturnByValue.h b/Eigen/src/Core/ReturnByValue.h
index afe9ecbbd..55652db48 100644
--- a/Eigen/src/Core/ReturnByValue.h
+++ b/Eigen/src/Core/ReturnByValue.h
@@ -51,9 +51,9 @@ struct ei_nested<ReturnByValue<Derived>, n, PlainMatrixType>
template<typename Derived>
class ReturnByValue : public MatrixBase<ReturnByValue<Derived> >
{
- typedef typename ei_traits<Derived>::ReturnMatrixType ReturnMatrixType;
public:
EIGEN_GENERIC_PUBLIC_INTERFACE(ReturnByValue)
+ typedef typename ei_traits<Derived>::ReturnMatrixType ReturnMatrixType;
template<typename Dest>
inline void evalTo(Dest& dst) const
{ static_cast<const Derived* const>(this)->evalTo(dst); }