From b1d6a9945c0a1557f859c422c2c97d17236901ab Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Tue, 25 Jan 2011 10:05:29 -0500 Subject: [PATCH] eigen2: pass the inverse test --- Eigen/src/Core/MatrixBase.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 class MatrixBase #if EIGEN2_SUPPORT_STAGE > STAGE20_RESOLVE_API_CONFLICTS const PartialPivLU lu() const; #endif + + #ifdef EIGEN2_SUPPORT + template + void computeInverse(MatrixBase *result) const { + *result = this->inverse(); + } + #endif const internal::inverse_impl inverse() const; template