10#ifndef EIGEN_INVERSE_H
11#define EIGEN_INVERSE_H
15template<
typename XprType,
typename StorageKind>
class InverseImpl;
19template<
typename XprType>
21 :
traits<typename XprType::PlainObject>
23 typedef typename XprType::PlainObject PlainObject;
42template<
typename XprType>
46 typedef typename XprType::StorageIndex StorageIndex;
47 typedef typename XprType::Scalar Scalar;
49 typedef typename internal::remove_all<XprTypeNested>::type XprTypeNestedCleaned;
51 typedef typename internal::remove_all<XprType>::type NestedExpression;
53 explicit EIGEN_DEVICE_FUNC
Inverse(
const XprType &
xpr)
57 EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR
Index rows()
const EIGEN_NOEXCEPT {
return m_xpr.cols(); }
58 EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR
Index cols()
const EIGEN_NOEXCEPT {
return m_xpr.rows(); }
60 EIGEN_DEVICE_FUNC
const XprTypeNestedCleaned& nestedExpression()
const {
return m_xpr; }
67template<
typename XprType,
typename StorageKind>
73 typedef typename XprType::Scalar Scalar;
77 Scalar coeff(
Index i)
const;
92template<
typename ArgType>
93struct unary_evaluator<
Inverse<ArgType> >
94 :
public evaluator<typename Inverse<ArgType>::PlainObject>
97 typedef typename InverseType::PlainObject PlainObject;
102 unary_evaluator(
const InverseType& inv_xpr)
103 : m_result(inv_xpr.rows(), inv_xpr.cols())
105 ::new (
static_cast<Base*
>(
this)) Base(m_result);
106 internal::call_assignment_no_alias(m_result, inv_xpr);
110 PlainObject m_result;
Expression of the inverse of another expression.
Definition Inverse.h:44
Base class for all dense matrices, vectors, and expressions.
Definition MatrixBase.h:50
const unsigned int EvalBeforeNestingBit
means the expression should be evaluated by the calling expression
Definition Constants.h:70
const unsigned int RowMajorBit
for a matrix, this means that the storage order is row-major.
Definition Constants.h:66
Namespace containing all symbols from the Eigen library.
Definition LDLT.h:16
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition Meta.h:74
Definition XprHelper.h:501
Definition ForwardDeclarations.h:17