Function Dune::XT::LA::solve_sym_tridiag_posdef

Function template Dune::XT::LA::solve_sym_tridiag_posdef

template<class MatrixType, class VectorType, class RhsVectorType>
std::enable_if_t<Common::is_matrix<MatrixType>::value && Common::is_vector<VectorType>::value && Common::is_vector<RhsVectorType>::value, void> Dune::XT::LA::solve_sym_tridiag_posdef(const MatrixType &A, VectorType &x, const RhsVectorType &y)

Solves A*x = y, where A is a symmetric positive definite tridiagonal matrix given as a full matrix.

Function template Dune::XT::LA::solve_sym_tridiag_posdef

template<class VectorType, class SecondVectorType, class RhsVectorType>
std::enable_if_t<Common::is_vector<VectorType>::value && Common::is_vector<SecondVectorType>::value && Common::is_vector<RhsVectorType>::value, void> Dune::XT::LA::solve_sym_tridiag_posdef(VectorType &diag, SecondVectorType &subdiag, RhsVectorType &b)

Solves linear equation for tridiagonal symmetric positive definite matrix.

:param diag: [in] vector containing the diagonal elements of the matrix (length dimRange) :param subdiag: [in] vector containing the sub-diagonal elements of the matrix (length dimRange-1) :param b: [in] vector containing the rhs (length dimRange). Is overwritten by the solution of the equation.