10 #ifndef EIGEN_SOLVEWITHGUESS_H
11 #define EIGEN_SOLVEWITHGUESS_H
15 template<
typename Decomposition,
typename RhsType,
typename GuessType>
class SolveWithGuess;
32 template<
typename Decomposition,
typename RhsType,
typename GuessType>
34 :
traits<Solve<Decomposition,RhsType> >
40 template<
typename Decomposition,
typename RhsType,
typename GuessType>
75 template<
typename Decomposition,
typename RhsType,
typename GuessType>
77 :
public evaluator<typename SolveWithGuess<Decomposition,RhsType,GuessType>::PlainObject>
84 : m_result(solve.rows(), solve.cols())
86 ::new (
static_cast<Base*
>(
this))
Base(m_result);
87 m_result = solve.
guess();
88 solve.
dec()._solve_with_guess_impl(solve.
rhs(), m_result);
97 template<
typename DstXprType,
typename DecType,
typename RhsType,
typename GuessType,
typename Scalar>
105 if((dst.rows()!=dstRows) || (dst.cols()!=dstCols))
106 dst.resize(dstRows, dstCols);
109 src.
dec()._solve_with_guess_impl(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
Pseudo expression representing a solving operation.
Definition: SolveWithGuess.h:15
internal::traits< SolveWithGuess >::PlainObject PlainObject
Definition: SolveWithGuess.h:45
const GuessType & m_guess
Definition: SolveWithGuess.h:65
Scalar coeff(Index i) const
EIGEN_DEVICE_FUNC const Decomposition & dec() const
Definition: SolveWithGuess.h:58
Scalar coeff(Index row, Index col) const
EIGEN_DEVICE_FUNC const RhsType & rhs() const
Definition: SolveWithGuess.h:59
const RhsType & m_rhs
Definition: SolveWithGuess.h:64
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
Definition: SolveWithGuess.h:54
EIGEN_DEVICE_FUNC const GuessType & guess() const
Definition: SolveWithGuess.h:60
internal::generic_xpr_base< SolveWithGuess< Decomposition, RhsType, GuessType >, MatrixXpr, typename internal::traits< RhsType >::StorageKind >::type Base
Definition: SolveWithGuess.h:46
internal::traits< SolveWithGuess >::Scalar Scalar
Definition: SolveWithGuess.h:44
const Decomposition & m_dec
Definition: SolveWithGuess.h:63
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
Definition: SolveWithGuess.h:56
internal::ref_selector< SolveWithGuess >::type Nested
Definition: SolveWithGuess.h:47
SolveWithGuess(const Decomposition &dec, const RhsType &rhs, const GuessType &guess)
Definition: SolveWithGuess.h:49
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
type
The type the bitset is encoded with.
Definition: bitset.hpp:44
Definition: document.h:416
Definition: Constants.h:522
static void run(DstXprType &dst, const SrcXprType &src, const internal::assign_op< Scalar, Scalar > &)
Definition: SolveWithGuess.h:101
SolveWithGuess< DecType, RhsType, GuessType > SrcXprType
Definition: SolveWithGuess.h:100
Definition: AssignEvaluator.h:824
Definition: AssignEvaluator.h:814
Definition: AssignmentFunctors.h:21
evaluator< PlainObject > Base
Definition: SolveWithGuess.h:81
evaluator(const SolveType &solve)
Definition: SolveWithGuess.h:83
SolveWithGuess< Decomposition, RhsType, GuessType > SolveType
Definition: SolveWithGuess.h:79
SolveType::PlainObject PlainObject
Definition: SolveWithGuess.h:80
PlainObject m_result
Definition: SolveWithGuess.h:92
Definition: CoreEvaluators.h:91
unary_evaluator< T > Base
Definition: CoreEvaluators.h:92
Definition: XprHelper.h:501
Definition: ForwardDeclarations.h:17
#define const
Definition: zconf.h:233