16 #ifndef dealii_tridiagonal_matrix_h 17 #define dealii_tridiagonal_matrix_h 19 #include <deal.II/base/config.h> 21 #include <deal.II/base/subscriptor.h> 23 #include <deal.II/lac/lapack_support.h> 28 DEAL_II_NAMESPACE_OPEN
31 template <
typename number>
51 template <
typename number>
145 const bool adding =
false)
const;
168 const bool adding =
false)
const;
224 template <
class OutputStream>
226 print(OutputStream & s,
227 const unsigned int width = 5,
228 const unsigned int precision = 2)
const;
273 template <
typename number>
277 return diagonal.size();
282 template <
typename number>
290 template <
typename number>
317 template <
typename number>
344 template <
typename number>
345 template <
class OutputStream>
348 const unsigned int width,
349 const unsigned int)
const 351 for (size_type i = 0; i < n(); ++i)
354 s << std::setw(width) << (*this)(i, i - 1);
356 s << std::setw(width) <<
"";
358 s <<
' ' << (*this)(i, i) <<
' ';
361 s << std::setw(width) << (*this)(i, i + 1);
370 DEAL_II_NAMESPACE_CLOSE
void compute_eigenvalues()
std::vector< number > left
void print(OutputStream &s, const unsigned int width=5, const unsigned int precision=2) const
void vmult(Vector< number > &w, const Vector< number > &v, const bool adding=false) const
static ::ExceptionBase & ExcIndexRange(int arg1, int arg2, int arg3)
void Tvmult_add(Vector< number > &w, const Vector< number > &v) const
LinearAlgebra::distributed::Vector< Number > Vector
#define Assert(cond, exc)
std::vector< number > right
number matrix_scalar_product(const Vector< number > &u, const Vector< number > &v) const
TridiagonalMatrix(size_type n=0, bool symmetric=false)
number matrix_norm_square(const Vector< number > &v) const
number eigenvalue(const size_type i) const
void Tvmult(Vector< number > &w, const Vector< number > &v, const bool adding=false) const
unsigned int global_dof_index
number operator()(size_type i, size_type j) const
LAPACKSupport::State state
std::vector< number > diagonal
void reinit(size_type n, bool symmetric=false)
void vmult_add(Vector< number > &w, const Vector< number > &v) const
types::global_dof_index size_type
static ::ExceptionBase & ExcInternalError()