9 #ifndef __IPIDENTITYMATRIX_HPP__ 10 #define __IPIDENTITYMATRIX_HPP__ 70 const std::string& name,
72 const std::string& prefix)
const;
119 return MakeNewIdentityMatrix();
Number * x
Input: Starting point Output: Optimal solution.
virtual void AddMSinvZImpl(Number alpha, const Vector &S, const Vector &Z, Vector &X) const
X = X + alpha*(Matrix S^{-1} Z).
Number GetFactor() const
Method for getting the factor for the identity matrix.
Number factor_
Scaling factor for this identity matrix.
double Number
Type of all numbers.
virtual SymMatrix * MakeNewSymMatrix() const
Overloaded MakeNew method for the SymMatrixSpace base class.
EJournalLevel
Print Level Enum.
This is the base class for all derived symmetric matrix types.
IdentityMatrix()
Default 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.
This is the matrix space for IdentityMatrix.
Class for Matrices which are multiples of the identity matrix.
virtual bool HasValidNumbersImpl() const
Method for determining if all stored numbers are valid (i.e., no Inf or Nan).
int Index
Type of all indices of vectors, matrices etc.
void SetFactor(Number factor)
Method for setting the factor for the identity matrix.
virtual ~IdentityMatrixSpace()
Destructor.
IdentityMatrix * MakeNewIdentityMatrix() const
Method for creating a new matrix of this specific type.
SymMatrixSpace base class, corresponding to the SymMatrix base class.
void operator=(const IdentityMatrix &)
Overloaded Equals Operator.
Class responsible for all message output.
IdentityMatrixSpace(Index dim)
Constructor, given the dimension of the matrix.
Index Dim() const
Method for obtaining the dimention of the matrix.
EJournalCategory
Category Selection Enum.
virtual void ComputeRowAMaxImpl(Vector &rows_norms, bool init) const
Compute the max-norm of the rows in the matrix.
~IdentityMatrix()
Destructor.
virtual void MultVectorImpl(Number alpha, const Vector &x, Number beta, Vector &y) const
Matrix-vector multiply.