9 #ifndef __IPGENTMATRIX_HPP__ 10 #define __IPGENTMATRIX_HPP__ 19 class GenTMatrixSpace;
110 const std::string& name,
112 const std::string& prefix)
const 121 const std::string& name,
123 const std::string& prefix,
198 return MakeNewGenTMatrix();
234 Number* AllocateInternalStorage()
const;
238 void FreeInternalStorage(
Number* values)
const;
virtual void MultVectorImpl(Number alpha, const Vector &x, Number beta, Vector &y) const
Matrix-vector multiply.
GenTMatrix * MakeNewGenTMatrix() const
Method for creating a new matrix of this specific type.
Number * x
Input: Starting point Output: Optimal solution.
This is the matrix space for a GenTMatrix with fixed sparsity structure.
void operator=(const GenTMatrix &)
Overloaded Equals Operator.
GenTMatrix()
Default Constructor.
Index Nonzeros() const
Number of non-zeros in the sparse matrix.
const Index * Irows() const
Row index of each non-zero element (counting starts at 1)
double Number
Type of all numbers.
void ObjectChanged()
Objects derived from TaggedObject MUST call this method every time their internal state changes to up...
void PrintImplOffset(const Journalist &jnlst, EJournalLevel level, EJournalCategory category, const std::string &name, Index indent, const std::string &prefix, Index offset) const
const Index * Irows() const
Array with Row indices (counting starts at 1)
EJournalLevel
Print Level Enum.
virtual bool HasValidNumbersImpl() const
Method for determining if all stored numbers are valid (i.e., no Inf or Nan).
const Index * Jcols() const
Array with Column indices (counting starts at 1)
virtual void ComputeColAMaxImpl(Vector &cols_norms, bool init) const
Compute the max-norm of the columns in the matrix.
virtual void ComputeRowAMaxImpl(Vector &rows_norms, bool init) const
Compute the max-norm of the rows in the matrix.
bool initialized_
Flag for Initialization.
MatrixSpace base class, corresponding to the Matrix base class.
int Index
Type of all indices of vectors, matrices etc.
const GenTMatrixSpace * owner_space_
Copy of the owner space as a GenTMatrixSpace instead of a MatrixSpace.
Class for general matrices stored in triplet format.
const Index * Jcols() const
Column index of each non-zero element (counting starts at 1)
virtual Matrix * MakeNew() const
Overloaded MakeNew method for the MatrixSpace base class.
Class responsible for all message output.
Index Nonzeros() const
Number of nonzero entries.
~GenTMatrixSpace()
Destructor.
const Number * Values() const
Array with nonzero values (const version).
Number * values_
Values of nonzeros.
Number * Values()
Array with the nonzero values of this matrix (non-const version).
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.
virtual void TransMultVectorImpl(Number alpha, const Vector &x, Number beta, Vector &y) const
Matrix(transpose) vector multiply.
EJournalCategory
Category Selection Enum.
friend class ParGenMatrix
void SetValues(const Number *Values)
Set values of nonzero elements.