aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2011-01-25 10:05:29 -0500
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2011-01-25 10:05:29 -0500
commitb1d6a9945c0a1557f859c422c2c97d17236901ab (patch)
tree4c6090b1180beb674a480967e790e07107951a7b /Eigen
parent09d1923f61dfbec8c41fc4d04f4aa09453d12fdb (diff)
eigen2: pass the inverse test
Diffstat (limited to 'Eigen')
-rw-r--r--Eigen/src/Core/MatrixBase.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Eigen/src/Core/MatrixBase.h b/Eigen/src/Core/MatrixBase.h
index 89350d88a..cdd445b9d 100644
--- a/Eigen/src/Core/MatrixBase.h
+++ b/Eigen/src/Core/MatrixBase.h
@@ -345,6 +345,13 @@ template<typename Derived> class MatrixBase
#if EIGEN2_SUPPORT_STAGE > STAGE20_RESOLVE_API_CONFLICTS
const PartialPivLU<PlainObject> lu() const;
#endif
+
+ #ifdef EIGEN2_SUPPORT
+ template<typename ResultType>
+ void computeInverse(MatrixBase<ResultType> *result) const {
+ *result = this->inverse();
+ }
+ #endif
const internal::inverse_impl<Derived> inverse() const;
template<typename ResultType>