10#ifndef EIGEN_SOLVEWITHGUESS_H
11#define EIGEN_SOLVEWITHGUESS_H
15template<
typename Decomposition,
typename RhsType,
typename GuessType>
class SolveWithGuess;
32template<
typename Decomposition,
typename RhsType,
typename GuessType>
34 :
traits<Solve<Decomposition,RhsType> >
40template<
typename Decomposition,
typename RhsType,
typename GuessType>
50 : m_dec(dec), m_rhs(rhs), m_guess(guess)
53 EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR
54 Index rows()
const EIGEN_NOEXCEPT {
return m_dec.cols(); }
55 EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR
56 Index cols()
const EIGEN_NOEXCEPT {
return m_rhs.cols(); }
58 EIGEN_DEVICE_FUNC
const Decomposition& dec()
const {
return m_dec; }
59 EIGEN_DEVICE_FUNC
const RhsType& rhs()
const {
return m_rhs; }
60 EIGEN_DEVICE_FUNC
const GuessType& guess()
const {
return m_guess; }
69 Scalar coeff(
Index i)
const;
75template<
typename Decomposition,
typename RhsType,
typename GuessType>
77 :
public evaluator<typename SolveWithGuess<Decomposition,RhsType,GuessType>::PlainObject>
80 typedef typename SolveType::PlainObject PlainObject;
83 evaluator(
const SolveType& solve)
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);
109 src.dec()._solve_with_guess_impl(
src.rhs(),
dst);
EIGEN_DEVICE_FUNC void resize(Index newSize)
Only plain matrices/arrays, not expressions, may be resized; therefore the only useful resize methods...
Definition DenseBase.h:246
Base class for all dense matrices, vectors, and expressions.
Definition MatrixBase.h:50
Pseudo expression representing a solving operation.
Definition SolveWithGuess.h:42
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
The type used to identify a matrix expression.
Definition Constants.h:522
Definition AssignmentFunctors.h:21
Definition XprHelper.h:501
Definition ForwardDeclarations.h:17