9 #ifndef __IPDENSESYMMATRIX_HPP__
10 #define __IPDENSESYMMATRIX_HPP__
21 class DenseSymMatrixSpace;
112 const std::string& name,
114 const std::string& prefix)
const;
Number * x
Input: Starting point Output: Optimal solution.
void FillIdentity(Number factor=1.)
Set this matrix to be a multiple of the identity matrix.
const Number * Values() const
Retrieve the array that stores the matrix elements.
DenseSymMatrixSpace(Index nDim)
Constructor for matrix space for DenseSymMatrices.
virtual SymMatrix * MakeNewSymMatrix() const
Overloaded MakeNew method for the MatrixSpace base class.
const DenseSymMatrixSpace * owner_space_
Number * Values()
Retrieve the array for storing the matrix elements.
double Number
Type of all numbers.
void ObjectChanged()
Objects derived from TaggedObject MUST call this method every time their internal state changes to up...
Class for dense symetrix matrices.
Dense Vector Implementation.
~DenseSymMatrix()
Destructor.
Number * values_
Array for storing the matrix elements (one columns after each other)
EJournalLevel
Print Level Enum.
virtual void ComputeRowAMaxImpl(Vector &rows_norms, bool init) const
Compute the max-norm of the rows in the matrix.
This is the base class for all derived symmetric matrix types.
SmartPtr< DenseSymMatrix > MakeNewDenseSymMatrix() const
Create a new DenseSymMatrix from same MatrixSpace.
Template class for Smart Pointers.
This is the matrix space for DenseSymMatrix.
bool initialized_
Flag indicating whether the values_ array has been initialized.
void AddMatrix(Number alpha, const DenseSymMatrix &A, Number beta)
Method for adding another matrix to this one.
virtual void MultVectorImpl(Number alpha, const Vector &x, Number beta, Vector &y) const
Matrix-vector multiply.
void operator=(const DenseSymMatrix &)
Overloaded Equals Operator.
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.
Class for Matrices with few columns that consists of Vectors.
~DenseSymMatrixSpace()
Destructor.
DenseSymMatrix()
Default Constructor.
DenseSymMatrix * MakeNewDenseSymMatrix() const
Method for creating a new matrix of this specific type.
int Index
Type of all indices of vectors, matrices etc.
virtual bool HasValidNumbersImpl() const
Method for determining if all stored numbers are valid (i.e., no Inf or Nan).
SymMatrixSpace base class, corresponding to the SymMatrix base class.
Class for dense general matrices.
Class responsible for all message output.
void HighRankUpdateTranspose(Number alpha, const MultiVectorMatrix &V1, const MultiVectorMatrix &V2, Number beta)
Method for adding a high-rank update to this matrix.
EJournalCategory
Category Selection Enum.
void HighRankUpdate(bool trans, Number alpha, const DenseGenMatrix &V, Number beta)
Method for adding a high-rank update to this matrix.
void SpecialAddForLMSR1(const DenseVector &D, const DenseGenMatrix &L)
Method for doing a specialized Add operation, required in the limited memory SR1 update.