10 #ifndef EIGEN_SOLVEWITHGUESS_H
11 #define EIGEN_SOLVEWITHGUESS_H
18 template <
typename Decomposition,
typename RhsType,
typename GuessType>
35 template <
typename Decomposition,
typename RhsType,
typename GuessType>
40 template <
typename Decomposition,
typename RhsType,
typename GuessType>
42 typename internal::traits<RhsType>::StorageKind>
::type {
73 template <
typename Decomposition,
typename RhsType,
typename GuessType>
75 :
public evaluator<typename SolveWithGuess<Decomposition, RhsType, GuessType>::PlainObject> {
81 internal::construct_at<Base>(
this, m_result);
82 m_result =
solve.guess();
83 solve.dec()._solve_with_guess_impl(
solve.rhs(), m_result);
93 template <
typename DstXprType,
typename DecType,
typename RhsType,
typename GuessType,
typename Scalar>
100 if ((dst.rows() != dstRows) || (dst.cols() != dstCols)) dst.resize(dstRows, dstCols);
103 src.
dec()._solve_with_guess_impl(src.
rhs(), dst );
int i
Definition: BiCGSTAB_step_by_step.cpp:9
#define EIGEN_NOEXCEPT
Definition: Macros.h:1267
#define EIGEN_CONSTEXPR
Definition: Macros.h:758
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:892
int rows
Definition: Tutorial_commainit_02.cpp:1
int cols
Definition: Tutorial_commainit_02.cpp:1
Pseudo expression representing a solving operation.
Definition: SolveWithGuess.h:19
internal::traits< SolveWithGuess >::PlainObject PlainObject
Definition: SolveWithGuess.h:45
const GuessType & m_guess
Definition: SolveWithGuess.h:63
Scalar coeff(Index i) const
EIGEN_DEVICE_FUNC const Decomposition & dec() const
Definition: SolveWithGuess.h:56
internal::generic_xpr_base< SolveWithGuess< Decomposition, RhsType, GuessType >, MatrixXpr, typename internal::traits< RhsType >::StorageKind >::type Base
Definition: SolveWithGuess.h:47
Scalar coeff(Index row, Index col) const
EIGEN_DEVICE_FUNC const RhsType & rhs() const
Definition: SolveWithGuess.h:57
const RhsType & m_rhs
Definition: SolveWithGuess.h:62
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
Definition: SolveWithGuess.h:53
EIGEN_DEVICE_FUNC const GuessType & guess() const
Definition: SolveWithGuess.h:58
internal::traits< SolveWithGuess >::Scalar Scalar
Definition: SolveWithGuess.h:44
const Decomposition & m_dec
Definition: SolveWithGuess.h:61
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
Definition: SolveWithGuess.h:54
internal::ref_selector< SolveWithGuess >::type Nested
Definition: SolveWithGuess.h:48
SolveWithGuess(const Decomposition &dec, const RhsType &rhs, const GuessType &guess)
Definition: SolveWithGuess.h:50
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:70
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:83
type
Definition: compute_granudrum_aor.py:141
Definition: Eigen_Colamd.h:49
Update the problem specs before solve
Definition: steady_axisym_advection_diffusion.cc:353
Definition: Constants.h:534
static void run(DstXprType &dst, const SrcXprType &src, const internal::assign_op< Scalar, Scalar > &)
Definition: SolveWithGuess.h:97
SolveWithGuess< DecType, RhsType, GuessType > SrcXprType
Definition: SolveWithGuess.h:96
Definition: AssignEvaluator.h:773
Definition: AssignEvaluator.h:756
Template functor for scalar/packet assignment.
Definition: AssignmentFunctors.h:25
evaluator< PlainObject > Base
Definition: SolveWithGuess.h:78
evaluator(const SolveType &solve)
Definition: SolveWithGuess.h:80
SolveType::PlainObject PlainObject
Definition: SolveWithGuess.h:77
SolveWithGuess< Decomposition, RhsType, GuessType > SolveType
Definition: SolveWithGuess.h:76
PlainObject m_result
Definition: SolveWithGuess.h:87
Definition: CoreEvaluators.h:104
Definition: XprHelper.h:575
std::conditional_t< bool(traits< T >::Flags &NestByRefBit), T const &, const T > type
Definition: XprHelper.h:507
Definition: ForwardDeclarations.h:21