9 #ifndef __IPDIAGMATRIX_HPP__
10 #define __IPDIAGMATRIX_HPP__
61 const std::string& name,
63 const std::string& prefix)
const;
Number * x
Input: Starting point Output: Optimal solution.
SmartPtr< const Vector > GetDiag() const
Method for setting the diagonal elements.
void operator=(const DiagMatrixSpace &)
Overloaded Equals Operator.
Class for diagonal matrices.
double Number
Type of all numbers.
void SetDiag(const Vector &diag)
Method for setting the diagonal elements (as a Vector).
EJournalLevel
Print Level Enum.
virtual ~DiagMatrixSpace()
Destructor.
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.
DiagMatrix()
Default Constructor.
This is the base class for all derived symmetric matrix types.
Template class for Smart Pointers.
int Index
Type of all indices of vectors, matrices etc.
SymMatrixSpace base class, corresponding to the SymMatrix base class.
SmartPtr< const Vector > diag_
Vector storing the diagonal elements.
Class responsible for all message output.
virtual void MultVectorImpl(Number alpha, const Vector &x, Number beta, Vector &y) const
Matrix-vector multiply.
void operator=(const DiagMatrix &)
Overloaded Equals Operator.
DiagMatrixSpace(Index dim)
Constructor, given the dimension of the matrix.
DiagMatrix * MakeNewDiagMatrix() const
Method for creating a new matrix of this specific type.
virtual SymMatrix * MakeNewSymMatrix() const
Overloaded MakeNew method for the SymMatrixSpace base class.
virtual bool HasValidNumbersImpl() const
Method for determining if all stored numbers are valid (i.e., no Inf or Nan).
This is the matrix space for DiagMatrix.
DiagMatrixSpace()
Default Constructor.
virtual void ComputeRowAMaxImpl(Vector &rows_norms, bool init) const
Compute the max-norm of the rows in the matrix.
EJournalCategory
Category Selection Enum.