Go to the documentation of this file.
7 #ifndef __IPIDENTITYMATRIX_HPP__
8 #define __IPIDENTITYMATRIX_HPP__
78 const std::string& name,
80 const std::string& prefix
132 return MakeNewIdentityMatrix();
This is the matrix space for IdentityMatrix.
~IdentityMatrix()
Destructor.
virtual void AddMSinvZImpl(Number alpha, const Vector &S, const Vector &Z, Vector &X) const
X = X + alpha*(Matrix S^{-1} Z).
virtual bool HasValidNumbersImpl() const
Method for determining if all stored numbers are valid (i.e., no Inf or Nan).
IdentityMatrix(const SymMatrixSpace *owner_space)
Constructor, initializing with dimensions of the matrix (true identity matrix).
This file contains a base class for all exceptions and a set of macros to help with exceptions.
double Number
Type of all numbers.
Number factor_
Scaling factor for this identity matrix.
void SetFactor(Number factor)
Method for setting the factor for the identity matrix.
EJournalLevel
Print Level Enum.
virtual ~IdentityMatrixSpace()
Destructor.
void operator=(const IdentityMatrixSpace &)
Default Assignment Operator.
int Index
Type of all indices of vectors, matrices etc.
Number GetFactor() const
Method for getting the factor for the identity matrix.
EJournalCategory
Category Selection Enum.
IdentityMatrixSpace(Index dim)
Constructor, given the dimension of the matrix.
Class for Matrices which are multiples of the identity matrix.
IdentityMatrix(const IdentityMatrix &)
Copy Constructor.
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.
void operator=(const IdentityMatrix &)
Default Assignment Operator.
Class responsible for all message output.
This is the base class for all derived symmetric matrix types.
virtual void MultVectorImpl(Number alpha, const Vector &x, Number beta, Vector &y) const
Matrix-vector multiply.
IdentityMatrix()
Default Constructor.
virtual void ComputeRowAMaxImpl(Vector &rows_norms, bool init) const
Compute the max-norm of the rows in the matrix.
SymMatrixSpace base class, corresponding to the SymMatrix base class.
Index Dim() const
Method for obtaining the dimension of the matrix.
IdentityMatrixSpace()
Default Constructor.
IdentityMatrixSpace(const IdentityMatrixSpace &)
Copy Constructor.
IdentityMatrix * MakeNewIdentityMatrix() const
Method for creating a new matrix of this specific type.
virtual SymMatrix * MakeNewSymMatrix() const
Pure virtual method for creating a new matrix of this specific type.