9 #ifndef __IPSYMTMATRIX_HPP__ 10 #define __IPSYMTMATRIX_HPP__ 19 class SymTMatrixSpace;
120 const std::string& name,
122 const std::string& prefix)
const;
185 return MakeNewSymTMatrix();
219 Number* AllocateInternalStorage()
const;
222 void FreeInternalStorage(
Number* values)
const;
Number * x
Input: Starting point Output: Optimal solution.
virtual SymMatrix * MakeNewSymMatrix() const
Overloaded MakeNew method for the sYMMatrixSpace base class.
FORTRAN_INTEGER_TYPE ipfint
virtual bool HasValidNumbersImpl() const
Method for determining if all stored numbers are valid (i.e., no Inf or Nan).
const Index * Irows() const
Obtain pointer to the internal Index array irn_ without the intention to change the matrix data (USE ...
double Number
Type of all numbers.
SymTMatrix * MakeNewSymTMatrix() const
Method for creating a new matrix of this specific type.
const Index * Jcols() const
Column index of each non-zero element.
EJournalLevel
Print Level Enum.
Index Nonzeros() const
Number of nonzero entries.
This is the base class for all derived symmetric matrix types.
const Index * Jcols() const
Obtain pointer to the internal Index array jcn_ without the intention to change the matrix data (USE ...
int Index
Type of all indices of vectors, matrices etc.
Index Nonzeros() const
Number of non-zeros in the sparse matrix.
void SetValues(const Number *Values)
Set values of nonzero elements.
void FillStruct(ipfint *Irn, ipfint *Jcn) const
Copy the nonzero structure into provided space.
void operator=(const SymTMatrix &)
Overloaded Equals Operator.
void FillValues(Number *Values) const
Copy the value data into provided space.
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.
Class responsible for all message output.
Class for symmetric matrices stored in triplet format.
const SymTMatrixSpace * owner_space_
Copy of the owner_space ptr as a SymTMatrixSpace insteaqd of a MatrixSpace.
Number * Values()
Obtain pointer to the internal Number array values_ with the intention to change the matrix data (USE...
virtual void MultVectorImpl(Number alpha, const Vector &x, Number beta, Vector &y) const
Matrix-vector multiply.
This is the matrix space for a SymTMatrix with fixed sparsity structure.
EJournalCategory
Category Selection Enum.
bool initialized_
Flag for Initialization.
const Index * Irows() const
Row index of each non-zero element.
SymTMatrix()
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.
Number * values_
Values of nonzeros.