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>
68 Solve(
const Decomposition &dec,
const RhsType &rhs)
69 : m_dec(dec), m_rhs(rhs)
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);
188 #endif // EIGEN_SOLVE_H
internal::traits< Derived >::Scalar Scalar
Solve< Transpose< const DecType >, RhsType > SrcXprType
static void run(DstXprType &dst, const SrcXprType &src, const internal::assign_op< Scalar, Scalar > &)
Expression of the transpose of a matrix.
Solve< DecType, RhsType > SrcXprType
static void run(DstXprType &dst, const SrcXprType &src, const internal::assign_op< Scalar, Scalar > &)
SolveType::PlainObject PlainObject
Namespace containing all symbols from the Eigen library.
traits< PlainObject > BaseTraits
const unsigned int RowMajorBit
EIGEN_DEVICE_FUNC evaluator(const SolveType &solve)
Solve< Decomposition, RhsType > Derived
Solve(const Decomposition &dec, const RhsType &rhs)
EIGEN_DEVICE_FUNC const Decomposition & dec() const
internal::traits< Solve >::StorageIndex StorageIndex
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Solve< Decomposition, RhsType > SolveType
solve_traits< Decomposition, RhsType, typename internal::traits< RhsType >::StorageKind >::PlainObject PlainObject
evaluator< PlainObject > Base
MatrixBase< Solve< Decomposition, RhsType > > Base
internal::generic_xpr_base< Solve< Decomposition, RhsType >, MatrixXpr, StorageKind >::type Base
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
promote_index_type< typename Decomposition::StorageIndex, typename RhsType::StorageIndex >::type StorageIndex
#define EIGEN_DEVICE_FUNC
internal::traits< Solve >::PlainObject PlainObject
make_proper_matrix_type< typename RhsType::Scalar, Decomposition::ColsAtCompileTime, RhsType::ColsAtCompileTime, RhsType::PlainObject::Options, Decomposition::MaxColsAtCompileTime, RhsType::MaxColsAtCompileTime >::type PlainObject
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
#define EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
Solve< CwiseUnaryOp< internal::scalar_conjugate_op< typename DecType::Scalar >, const Transpose< const DecType > >, RhsType > SrcXprType
EIGEN_DEVICE_FUNC const RhsType & rhs() const
Pseudo expression representing a solving operation.
const unsigned int EvalBeforeNestingBit
Generic expression where a coefficient-wise unary operator is applied to an expression.
const Decomposition & m_dec
Base class for all dense matrices, vectors, and expressions.
static void run(DstXprType &dst, const SrcXprType &src, const internal::assign_op< Scalar, Scalar > &)