aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2014-02-20 14:18:24 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2014-02-20 14:18:24 +0100
commitecd2c8f37b8023b56d00cec4aebec7d2f3157e3f (patch)
tree54a7473226549c4adf3fc93f3cd74ca8237af13c /Eigen/src/Core
parent2eee6eaf3c073fabb214e4e524a58148f4013c2c (diff)
Add general Inverse<> expression with evaluator
Diffstat (limited to 'Eigen/src/Core')
-rw-r--r--Eigen/src/Core/MatrixBase.h5
-rw-r--r--Eigen/src/Core/Solve.h6
-rw-r--r--Eigen/src/Core/util/ForwardDeclarations.h1
3 files changed, 9 insertions, 3 deletions
diff --git a/Eigen/src/Core/MatrixBase.h b/Eigen/src/Core/MatrixBase.h
index 5a3675a20..72aa75da8 100644
--- a/Eigen/src/Core/MatrixBase.h
+++ b/Eigen/src/Core/MatrixBase.h
@@ -412,8 +412,13 @@ template<typename Derived> class MatrixBase
}
#endif
+ #ifdef EIGEN_TEST_EVALUATORS
+ EIGEN_DEVICE_FUNC
+ const Inverse<Derived> inverse() const;
+ #else
EIGEN_DEVICE_FUNC
const internal::inverse_impl<Derived> inverse() const;
+ #endif
template<typename ResultType>
void computeInverseAndDetWithCheck(
ResultType& inverse,
diff --git a/Eigen/src/Core/Solve.h b/Eigen/src/Core/Solve.h
index 2da2aff56..cab0e916e 100644
--- a/Eigen/src/Core/Solve.h
+++ b/Eigen/src/Core/Solve.h
@@ -7,8 +7,8 @@
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#ifndef EIGEN_INVERSE_H
-#define EIGEN_INVERSE_H
+#ifndef EIGEN_SOLVE_H
+#define EIGEN_SOLVE_H
namespace Eigen {
@@ -81,7 +81,7 @@ protected:
};
-// Specilaization of the Solve expression for dense results
+// Specialization of the Solve expression for dense results
template<typename Decomposition, typename RhsType>
class SolveImpl<Decomposition,RhsType,Dense>
: public MatrixBase<Solve<Decomposition,RhsType> >
diff --git a/Eigen/src/Core/util/ForwardDeclarations.h b/Eigen/src/Core/util/ForwardDeclarations.h
index 8cf13abd9..ecb811910 100644
--- a/Eigen/src/Core/util/ForwardDeclarations.h
+++ b/Eigen/src/Core/util/ForwardDeclarations.h
@@ -96,6 +96,7 @@ template<typename BinaryOp, typename Lhs, typename Rhs> class CwiseBinaryOp;
template<typename BinOp, typename Lhs, typename Rhs> class SelfCwiseBinaryOp; // TODO deprecated
template<typename Derived, typename Lhs, typename Rhs> class ProductBase; // TODO deprecated
template<typename Decomposition, typename Rhstype> class Solve;
+template<typename XprType> class Inverse;
namespace internal {
template<typename Lhs, typename Rhs> struct product_tag;