11#ifndef EIGEN_INVERSE_IMPL_H
12#define EIGEN_INVERSE_IMPL_H
22template<
typename MatrixType,
typename ResultType,
int Size = MatrixType::RowsAtCompileTime>
32template<
typename MatrixType,
typename ResultType,
int Size = MatrixType::RowsAtCompileTime>
39template<
typename MatrixType,
typename ResultType>
45 typedef typename MatrixType::Scalar
Scalar;
51template<
typename MatrixType,
typename ResultType>
55 static inline void run(
74template<
typename MatrixType,
typename ResultType>
80 typename ResultType::Scalar temp =
matrix.coeff(0,0);
87template<
typename MatrixType,
typename ResultType>
93 typedef typename ResultType::Scalar
Scalar;
99template<
typename MatrixType,
typename ResultType>
112 typedef typename ResultType::Scalar
Scalar;
125template<
typename MatrixType,
int i,
int j>
139template<
typename MatrixType,
typename ResultType>
143 const typename ResultType::Scalar&
invdet,
148 typedef typename ResultType::Scalar
Scalar;
161template<
typename MatrixType,
typename ResultType>
167 typedef typename ResultType::Scalar
Scalar;
178template<
typename MatrixType,
typename ResultType>
190 typedef typename ResultType::Scalar
Scalar;
207template<
typename Derived>
216template<
typename MatrixType,
int i,
int j>
233template<
int Arch,
typename Scalar,
typename MatrixType,
typename ResultType>
259template<
typename MatrixType,
typename ResultType>
262 MatrixType, ResultType>
266template<
typename MatrixType,
typename ResultType>
300template<
typename DstXprType,
typename XprType>
312 const int Size =
EIGEN_PLAIN_ENUM_MIN(XprType::ColsAtCompileTime,DstXprType::ColsAtCompileTime);
315 &&
"Aliasing problem detected in inverse(), you need to do inverse().eval() here.");
346template<
typename Derived>
375template<
typename Derived>
376template<
typename ResultType>
389 RowsAtCompileTime == 2,
416template<
typename Derived>
417template<
typename ResultType>
427 computeInverseAndDetWithCheck(
inverse,
determinant,invertible,absDeterminantThreshold);
Matrix3f m
Definition AngleAxis_mimic_euler.cpp:1
EIGEN_DEVICE_FUNC const InverseReturnType inverse() const
Definition ArrayCwiseUnaryOps.h:411
int i
Definition BiCGSTAB_step_by_step.cpp:9
#define EIGEN_PLAIN_ENUM_MIN(a, b)
Definition Macros.h:1288
#define EIGEN_DEVICE_FUNC
Definition Macros.h:976
#define EIGEN_ONLY_USED_FOR_DEBUG(x)
Definition Macros.h:1049
#define eigen_assert(x)
Definition Macros.h:1037
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
Definition StaticAssert.h:127
int rows
Definition Tutorial_commainit_02.cpp:1
int cols
Definition Tutorial_commainit_02.cpp:1
SCALAR Scalar
Definition bench_gemm.cpp:46
MatrixXf MatrixType
Definition benchmark-blocking-sizes.cpp:52
Expression of the inverse of another expression.
Definition Inverse.h:44
void computeInverseWithCheck(ResultType &inverse, bool &invertible, const RealScalar &absDeterminantThreshold=NumTraits< Scalar >::dummy_precision()) const
Definition InverseImpl.h:418
NumTraits< Scalar >::Real RealScalar
Definition MatrixBase.h:58
void computeInverseAndDetWithCheck(ResultType &inverse, typename ResultType::Scalar &determinant, bool &invertible, const RealScalar &absDeterminantThreshold=NumTraits< Scalar >::dummy_precision()) const
Definition InverseImpl.h:377
internal::traits< Derived >::Scalar Scalar
Definition MatrixBase.h:56
EIGEN_DEVICE_FUNC const Inverse< Derived > inverse() const
Definition InverseImpl.h:348
Definition TensorRef.h:81
Map< Matrix< T, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > matrix(T *data, int rows, int cols, int stride)
Definition common.h:110
#define abs(x)
Definition datatypes.h:17
void determinant(const MatrixType &m)
Definition determinant.cpp:14
EIGEN_DEVICE_FUNC void compute_inverse_size2_helper(const MatrixType &matrix, const typename ResultType::Scalar &invdet, ResultType &result)
Definition InverseImpl.h:76
EIGEN_DEVICE_FUNC const Derived::Scalar general_det3_helper(const MatrixBase< Derived > &matrix, int i1, int i2, int i3, int j1, int j2, int j3)
Definition InverseImpl.h:210
EIGEN_DEVICE_FUNC MatrixType::Scalar cofactor_4x4(const MatrixType &matrix)
Definition InverseImpl.h:218
EIGEN_DEVICE_FUNC MatrixType::Scalar cofactor_3x3(const MatrixType &m)
Definition InverseImpl.h:127
EIGEN_DEVICE_FUNC void compute_inverse_size3_helper(const MatrixType &matrix, const typename ResultType::Scalar &invdet, const Matrix< typename ResultType::Scalar, 3, 1 > &cofactors_col0, ResultType &result)
Definition InverseImpl.h:141
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE const T::Scalar * extract_data(const T &m)
Definition BlasUtil.h:533
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE internal::enable_if< NumTraits< T >::IsSigned||NumTraits< T >::IsComplex, typenameNumTraits< T >::Real >::type abs(const T &x)
Definition MathFunctions.h:1509
Namespace containing all symbols from the Eigen library.
Definition bench_norm.cpp:85
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition Meta.h:74
Definition BandTriangularSolver.h:13
CwiseBinaryOp< internal::scalar_sum_op< double, double >, const CpyMatrixXd, const CpyMatrixXd > XprType
Definition nestbyvalue.cpp:15
Holds information about the various numeric (i.e. scalar) types allowed by Eigen.
Definition NumTraits.h:233
Inverse< XprType > SrcXprType
Definition InverseImpl.h:303
static EIGEN_DEVICE_FUNC void run(DstXprType &dst, const SrcXprType &src, const internal::assign_op< typename DstXprType::Scalar, typename XprType::Scalar > &)
Definition InverseImpl.h:305
Definition AssignEvaluator.h:824
Definition AssignEvaluator.h:814
Definition AssignmentFunctors.h:21
static EIGEN_DEVICE_FUNC void run(const MatrixType &matrix, ResultType &result)
Definition InverseImpl.h:43
static EIGEN_DEVICE_FUNC void run(const MatrixType &matrix, ResultType &result)
Definition InverseImpl.h:91
static EIGEN_DEVICE_FUNC void run(const MatrixType &matrix, ResultType &result)
Definition InverseImpl.h:165
static EIGEN_DEVICE_FUNC void run(const MatrixType &matrix, const typename MatrixType::RealScalar &absDeterminantThreshold, ResultType &result, typename ResultType::Scalar &determinant, bool &invertible)
Definition InverseImpl.h:55
static EIGEN_DEVICE_FUNC void run(const MatrixType &matrix, const typename MatrixType::RealScalar &absDeterminantThreshold, ResultType &inverse, typename ResultType::Scalar &determinant, bool &invertible)
Definition InverseImpl.h:103
static EIGEN_DEVICE_FUNC void run(const MatrixType &matrix, const typename MatrixType::RealScalar &absDeterminantThreshold, ResultType &inverse, typename ResultType::Scalar &determinant, bool &invertible)
Definition InverseImpl.h:182
static EIGEN_DEVICE_FUNC void run(const MatrixType &matrix, const typename MatrixType::RealScalar &absDeterminantThreshold, ResultType &inverse, typename ResultType::Scalar &determinant, bool &invertible)
Definition InverseImpl.h:270
Definition InverseImpl.h:33
Definition InverseImpl.h:235
static EIGEN_DEVICE_FUNC void run(const MatrixType &matrix, ResultType &result)
Definition InverseImpl.h:237
Definition InverseImpl.h:24
static EIGEN_DEVICE_FUNC void run(const MatrixType &matrix, ResultType &result)
Definition InverseImpl.h:26
Definition ForwardDeclarations.h:17
std::ptrdiff_t j
Definition tut_arithmetic_redux_minmax.cpp:2