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)
160 for(
typename MatType::InnerIterator it(
mat,
j); it; ++it)
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
Namespace containing all symbols from the Eigen library.
DiagonalPreconditioner(const MatType &mat)
Jacobi preconditioner for LeastSquaresConjugateGradient.
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
DiagonalPreconditioner & compute(const MatType &mat)
EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
Matrix< Scalar, Dynamic, 1 > Vector
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 &)
EIGEN_DEVICE_FUNC bool abs2(bool x)
Pseudo expression representing a solving operation.
DiagonalPreconditioner< _Scalar > Base
IdentityPreconditioner & compute(const MatrixType &)
A preconditioner based on the digonal entries.
EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
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.
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:11:10