Go to the documentation of this file.
10 #ifndef EIGEN_BASIC_PRECONDITIONERS_H
11 #define EIGEN_BASIC_PRECONDITIONERS_H
35 template <
typename _Scalar>
49 template<
typename MatType>
58 template<
typename MatType>
64 template<
typename MatType>
68 for(
int j=0; j<
mat.outerSize(); ++j)
70 typename MatType::InnerIterator it(
mat,j);
71 while(it && it.index()!=j) ++it;
72 if(it && it.index()==j && it.value()!=
Scalar(0))
81 template<
typename MatType>
88 template<
typename Rhs,
typename Dest>
99 &&
"DiagonalPreconditioner::solve(): invalid number of rows of the right hand side matrix b");
127 template <
typename _Scalar>
138 template<
typename MatType>
144 template<
typename MatType>
150 template<
typename MatType>
155 if(MatType::IsRowMajor)
158 for(
Index j=0; j<
mat.outerSize(); ++j)
160 for(
typename MatType::InnerIterator it(
mat,j); it; ++it)
169 for(
Index j=0; j<
mat.outerSize(); ++j)
182 template<
typename MatType>
206 template<
typename MatrixType>
209 template<
typename MatrixType>
212 template<
typename MatrixType>
215 template<
typename MatrixType>
218 template<
typename Rhs>
226 #endif // EIGEN_BASIC_PRECONDITIONERS_H
NumTraits< Scalar >::Real RealScalar
Map< Matrix< Scalar, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > MatrixType
DiagonalPreconditioner(const MatType &mat)
Jacobi preconditioner for LeastSquaresConjugateGradient.
DiagonalPreconditioner & compute(const MatType &mat)
Matrix< Scalar, Dynamic, 1 > Vector
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE Abs2ReturnType abs2() const
DiagonalPreconditioner & factorize(const MatType &mat)
const Solve< DiagonalPreconditioner, Rhs > solve(const MatrixBase< Rhs > &b) const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void resize(Index rows, Index cols)
Vector::StorageIndex StorageIndex
LeastSquareDiagonalPreconditioner & analyzePattern(const MatType &)
IdentityPreconditioner(const MatrixType &)
LeastSquareDiagonalPreconditioner & factorize(const MatType &mat)
const Rhs & solve(const Rhs &b) const
void _solve_impl(const Rhs &b, Dest &x) const
LeastSquareDiagonalPreconditioner(const MatType &mat)
LeastSquareDiagonalPreconditioner & compute(const MatType &mat)
A naive preconditioner which approximates any matrix as the identity matrix.
DiagonalPreconditioner & analyzePattern(const MatType &)
IdentityPreconditioner & factorize(const MatrixType &)
Pseudo expression representing a solving operation.
DiagonalPreconditioner< _Scalar > Base
IdentityPreconditioner & compute(const MatrixType &)
A preconditioner based on the digonal entries.
EIGEN_DEVICE_FUNC Derived & setZero(Index size)
Base class for all dense matrices, vectors, and expressions.
LeastSquareDiagonalPreconditioner()
IdentityPreconditioner & analyzePattern(const MatrixType &)
Holds information about the various numeric (i.e. scalar) types allowed by Eigen.
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
control_box_rst
Author(s): Christoph Rösmann
autogenerated on Wed Mar 2 2022 00:05:37