15 template<
typename Decomposition,
typename RhsType,
typename StorageKind>
class SolveImpl;
32 template<
typename Decomposition,
typename RhsType,
typename StorageKind>
struct solve_traits;
34 template<
typename Decomposition,
typename RhsType>
38 Decomposition::ColsAtCompileTime,
39 RhsType::ColsAtCompileTime,
40 RhsType::PlainObject::Options,
41 Decomposition::MaxColsAtCompileTime,
45 template<
typename Decomposition,
typename RhsType>
47 :
traits<typename solve_traits<Decomposition,RhsType,typename internal::traits<RhsType>::StorageKind>::PlainObject>
61 template<
typename Decomposition,
typename RhsType>
62 class Solve :
public SolveImpl<Decomposition,RhsType,typename internal::traits<RhsType>::StorageKind>
85 template<
typename Decomposition,
typename RhsType>
87 :
public MatrixBase<Solve<Decomposition,RhsType> >
103 template<
typename Decomposition,
typename RhsType,
typename StorageKind>
113 template<
typename Decomposition,
typename RhsType>
115 :
public evaluator<typename Solve<Decomposition,RhsType>::PlainObject>
124 : m_result(solve.rows(), solve.cols())
126 ::new (
static_cast<Base*
>(
this))
Base(m_result);
127 solve.
dec()._solve_impl(solve.
rhs(), m_result);
136 template<
typename DstXprType,
typename DecType,
typename RhsType,
typename Scalar>
144 if((dst.rows()!=dstRows) || (dst.cols()!=dstCols))
145 dst.resize(dstRows, dstCols);
147 src.
dec()._solve_impl(src.
rhs(), dst);
152 template<
typename DstXprType,
typename DecType,
typename RhsType,
typename Scalar>
160 if((dst.rows()!=dstRows) || (dst.cols()!=dstCols))
161 dst.resize(dstRows, dstCols);
163 src.
dec().nestedExpression().template _solve_impl_transposed<false>(src.
rhs(), dst);
168 template<
typename DstXprType,
typename DecType,
typename RhsType,
typename Scalar>
177 if((dst.rows()!=dstRows) || (dst.cols()!=dstCols))
178 dst.resize(dstRows, dstCols);
180 src.
dec().nestedExpression().nestedExpression().template _solve_impl_transposed<true>(src.
rhs(), dst);
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ColXpr col(Index i)
This is the const version of col().
Definition: BlockMethods.h:1097
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE RowXpr row(Index i)
This is the const version of row(). */.
Definition: BlockMethods.h:1118
#define EIGEN_NOEXCEPT
Definition: Macros.h:1418
#define EIGEN_CONSTEXPR
Definition: Macros.h:787
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:976
#define EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
Definition: Macros.h:1283
Generic expression where a coefficient-wise unary operator is applied to an expression.
Definition: CwiseUnaryOp.h:56
internal::traits< Solve< Decomposition, RhsType > >::Scalar Scalar
Definition: DenseBase.h:66
Base class for all dense matrices, vectors, and expressions.
Definition: MatrixBase.h:50
Solve< Decomposition, RhsType > Derived
Definition: Solve.h:89
MatrixBase< Solve< Decomposition, RhsType > > Base
Definition: Solve.h:93
Scalar coeff(Index row, Index col) const
Scalar coeff(Index i) const
internal::generic_xpr_base< Solve< Decomposition, RhsType >, MatrixXpr, StorageKind >::type Base
Definition: Solve.h:107
Pseudo expression representing a solving operation.
Definition: Solve.h:63
internal::traits< Solve >::PlainObject PlainObject
Definition: Solve.h:65
const RhsType & m_rhs
Definition: Solve.h:80
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
Definition: Solve.h:73
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
Definition: Solve.h:72
internal::traits< Solve >::StorageIndex StorageIndex
Definition: Solve.h:66
const Decomposition & m_dec
Definition: Solve.h:79
EIGEN_DEVICE_FUNC const Decomposition & dec() const
Definition: Solve.h:75
Solve(const Decomposition &dec, const RhsType &rhs)
Definition: Solve.h:68
EIGEN_DEVICE_FUNC const RhsType & rhs() const
Definition: Solve.h:76
Expression of the transpose of a matrix.
Definition: Transpose.h:54
Definition: XprHelper.h:258
const unsigned int EvalBeforeNestingBit
Definition: Constants.h:70
const unsigned int RowMajorBit
Definition: Constants.h:66
Namespace containing all symbols from the Eigen library.
Definition: LDLT.h:16
const int HugeCost
Definition: Constants.h:44
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:74
type
The type the bitset is encoded with.
Definition: bitset.hpp:44
Flags
Special flags for archives.
Definition: cereal.hpp:185
Definition: document.h:416
Definition: Constants.h:507
Definition: Constants.h:522
static void run(DstXprType &dst, const SrcXprType &src, const internal::assign_op< Scalar, Scalar > &)
Definition: Solve.h:173
Solve< CwiseUnaryOp< internal::scalar_conjugate_op< typename DecType::Scalar >, const Transpose< const DecType > >, RhsType > SrcXprType
Definition: Solve.h:172
static void run(DstXprType &dst, const SrcXprType &src, const internal::assign_op< Scalar, Scalar > &)
Definition: Solve.h:140
Solve< DecType, RhsType > SrcXprType
Definition: Solve.h:139
Solve< Transpose< const DecType >, RhsType > SrcXprType
Definition: Solve.h:155
static void run(DstXprType &dst, const SrcXprType &src, const internal::assign_op< Scalar, Scalar > &)
Definition: Solve.h:156
Definition: AssignEvaluator.h:824
Definition: AssignEvaluator.h:814
Definition: AssignmentFunctors.h:21
EIGEN_DEVICE_FUNC evaluator(const SolveType &solve)
Definition: Solve.h:123
SolveType::PlainObject PlainObject
Definition: Solve.h:118
PlainObject m_result
Definition: Solve.h:131
evaluator< PlainObject > Base
Definition: Solve.h:119
Solve< Decomposition, RhsType > SolveType
Definition: Solve.h:117
Definition: CoreEvaluators.h:91
unary_evaluator< T > Base
Definition: CoreEvaluators.h:92
Definition: XprHelper.h:501
Definition: UnaryFunctors.h:109
make_proper_matrix_type< typename RhsType::Scalar, Decomposition::ColsAtCompileTime, RhsType::ColsAtCompileTime, RhsType::PlainObject::Options, Decomposition::MaxColsAtCompileTime, RhsType::MaxColsAtCompileTime >::type PlainObject
Definition: Solve.h:42
promote_index_type< typename Decomposition::StorageIndex, typename RhsType::StorageIndex >::type StorageIndex
Definition: Solve.h:50
traits< PlainObject > BaseTraits
Definition: Solve.h:51
solve_traits< Decomposition, RhsType, typename internal::traits< RhsType >::StorageKind >::PlainObject PlainObject
Definition: Solve.h:49
Definition: ForwardDeclarations.h:17
#define const
Definition: zconf.h:233