Lines Matching refs:mat
50 explicit DiagonalPreconditioner(const MatType& mat) : m_invdiag(mat.cols()) in DiagonalPreconditioner() argument
52 compute(mat); in DiagonalPreconditioner()
65 DiagonalPreconditioner& factorize(const MatType& mat) in factorize() argument
67 m_invdiag.resize(mat.cols()); in factorize()
68 for(int j=0; j<mat.outerSize(); ++j) in factorize()
70 typename MatType::InnerIterator it(mat,j); in factorize()
82 DiagonalPreconditioner& compute(const MatType& mat) in compute() argument
84 return factorize(mat); in compute()
139 explicit LeastSquareDiagonalPreconditioner(const MatType& mat) : Base() in LeastSquareDiagonalPreconditioner() argument
141 compute(mat); in LeastSquareDiagonalPreconditioner()
151 LeastSquareDiagonalPreconditioner& factorize(const MatType& mat) in factorize() argument
154 m_invdiag.resize(mat.cols()); in factorize()
158 for(Index j=0; j<mat.outerSize(); ++j) in factorize()
160 for(typename MatType::InnerIterator it(mat,j); it; ++it) in factorize()
163 for(Index j=0; j<mat.cols(); ++j) in factorize()
169 for(Index j=0; j<mat.outerSize(); ++j) in factorize()
171 RealScalar sum = mat.innerVector(j).squaredNorm(); in factorize()
183 LeastSquareDiagonalPreconditioner& compute(const MatType& mat) in compute() argument
185 return factorize(mat); in compute()