Go to the documentation of this file.
7 #ifndef __IPDIAGMATRIX_HPP__
8 #define __IPDIAGMATRIX_HPP__
70 const std::string& name,
72 const std::string& prefix
123 return MakeNewDiagMatrix();
virtual void MultVectorImpl(Number alpha, const Vector &x, Number beta, Vector &y) const
Matrix-vector multiply.
This is the matrix space for DiagMatrix.
DiagMatrixSpace()
Default Constructor.
void SetDiag(const Vector &diag)
Set the diagonal elements (as a Vector).
SmartPtr< const Vector > diag_
Vector storing the diagonal elements.
virtual ~DiagMatrixSpace()
Destructor.
This file contains a base class for all exceptions and a set of macros to help with exceptions.
double Number
Type of all numbers.
DiagMatrix()
Default Constructor.
virtual SymMatrix * MakeNewSymMatrix() const
Pure virtual method for creating a new matrix of this specific type.
virtual bool HasValidNumbersImpl() const
Method for determining if all stored numbers are valid (i.e., no Inf or Nan).
EJournalLevel
Print Level Enum.
int Index
Type of all indices of vectors, matrices etc.
SmartPtr< const Vector > GetDiag() const
Get the diagonal elements.
Template class for Smart Pointers.
EJournalCategory
Category Selection Enum.
DiagMatrix * MakeNewDiagMatrix() const
Method for creating a new matrix of this specific type.
void operator=(const DiagMatrixSpace &)
Default Assignment Operator.
Class for diagonal matrices.
Class responsible for all message output.
This is the base class for all derived symmetric matrix types.
DiagMatrixSpace(const DiagMatrixSpace &)
Copy Constructor.
DiagMatrix(const SymMatrixSpace *owner_space)
Constructor, given the corresponding matrix space.
SymMatrixSpace base class, corresponding to the SymMatrix base class.
DiagMatrix(const DiagMatrix &)
Copy Constructor.
void operator=(const DiagMatrix &)
Default Assignment Operator.
virtual void ComputeRowAMaxImpl(Vector &rows_norms, bool init) const
Compute the max-norm of the rows in the matrix.
virtual void PrintImpl(const Journalist &jnlst, EJournalLevel level, EJournalCategory category, const std::string &name, Index indent, const std::string &prefix) const
Print detailed information about the matrix.
DiagMatrixSpace(Index dim)
Constructor, given the dimension of the matrix.