Go to the documentation of this file.
9 #ifndef __IPSYMMATRIX_HPP__
10 #define __IPSYMMATRIX_HPP__
145 owner_space_(owner_space)
virtual void ComputeColAMaxImpl(Vector &cols_norms, bool init) const
Since the matrix is symmetric, the row and column max norms are identical.
SymMatrixSpace(const SymMatrixSpace &)
MatrixSpace base class, corresponding to the Matrix base class.
SymMatrixSpace(Index dim)
Constructor, given the dimension (identical to the number of rows and columns).
virtual void ComputeRowAMaxImpl(Vector &rows_norms, bool init) const =0
Compute the max-norm of the rows in the matrix.
virtual Matrix * MakeNew() const
Overloaded MakeNew method for the MatrixSpace base class.
double Number
Type of all numbers.
SymMatrixSpace & operator=(const SymMatrixSpace &)
Overloaded Equals Operator.
Index Dim() const
Dimension of the matrix (number of rows and columns)
Number * x
Input: Starting point Output: Optimal solution.
virtual SymMatrix * MakeNewSymMatrix() const =0
Pure virtual method for creating a new matrix of this specific type.
int Index
Type of all indices of vectors, matrices etc.
Template class for Smart Pointers.
Index NCols() const
Accessor function for the number of columns.
SmartPtr< const SymMatrixSpace > OwnerSymMatrixSpace() const
virtual ~SymMatrix()
Destructor.
SymMatrix(const SymMatrixSpace *owner_space)
Constructor, taking the owner_space.
SymMatrixSpace()
default constructor
void MultVector(Number alpha, const Vector &x, Number beta, Vector &y) const
Matrix-vector multiply.
This is the base class for all derived symmetric matrix types.
const SymMatrixSpace * owner_space_
Copy of the owner space ptr as a SymMatrixSpace instead of a MatrixSpace.
SymMatrixSpace base class, corresponding to the SymMatrix base class.
Index NRows() const
Accessor function for the number of rows.
virtual ~SymMatrixSpace()
Destructor.
Index Dim() const
Accessor method for the dimension of the matrices in this matrix space.
virtual void TransMultVectorImpl(Number alpha, const Vector &x, Number beta, Vector &y) const
Since the matrix is symmetric, it is only necessary to implement the MultVectorImpl method in a class...