9 #ifndef __IPSUMSYMMATRIX_HPP__ 10 #define __IPSUMSYMMATRIX_HPP__ 19 class SumSymMatrixSpace;
68 const std::string& name,
70 const std::string& prefix)
const;
143 virtual SymMatrix* MakeNewSymMatrix()
const;
Number * x
Input: Starting point Output: Optimal solution.
virtual void ComputeColAMaxImpl(Vector &cols_norms, bool init) const
Since the matrix is symmetric, the row and column max norms are identical.
virtual bool HasValidNumbersImpl() const
Method for determining if all stored numbers are valid (i.e., no Inf or Nan).
std::vector< Number > factors_
std::vector storing the factors for each term.
std::vector< SmartPtr< const SymMatrix > > matrices_
std::vector storing the matrices for each term.
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.
double Number
Type of all numbers.
std::vector< SmartPtr< const SymMatrixSpace > > term_spaces_
Class for matrix space for SumSymMatrix.
~SumSymMatrixSpace()
Destructor.
void operator=(const SumSymMatrix &)
Overloaded Equals Operator.
EJournalLevel
Print Level Enum.
~SumSymMatrix()
Destructor.
SumSymMatrixSpace(Index ndim, Index nterms)
Constructor, given the dimension of the matrix and the number of terms in the sum.
This is the base class for all derived symmetric matrix types.
void GetTerm(Index iterm, Number &factor, SmartPtr< const SymMatrix > &matrix) const
Method for getting term iterm for the sum.
Template class for Smart Pointers.
virtual void MultVectorImpl(Number alpha, const Vector &x, Number beta, Vector &y) const
Matrix-vector multiply.
Index NTerms() const
Return the number of terms.
Class for Matrices which are sum of symmetric matrices.
int Index
Type of all indices of vectors, matrices etc.
virtual void ComputeRowAMaxImpl(Vector &rows_norms, bool init) const
Compute the max-norm of the rows in the matrix.
Index NTerms() const
Number of terms in the sum.
SymMatrixSpace base class, corresponding to the SymMatrix base class.
Class responsible for all message output.
const SumSymMatrixSpace * owner_space_
Copy of the owner_space as a SumSymMatrixSpace.
SumSymMatrix()
Default Constructor.
EJournalCategory
Category Selection Enum.
void SetTerm(Index iterm, Number factor, const SymMatrix &matrix)
Method for setting term iterm for the sum.