Go to the documentation of this file.
9 #ifndef __IPEXPANDEDMULTIVECTORMATRIX_HPP__
10 #define __IPEXPANDEDMULTIVECTORMATRIX_HPP__
20 class ExpandedMultiVectorMatrixSpace;
89 const std::string& name,
91 const std::string& prefix)
const;
117 std::vector<SmartPtr<const Vector> >
vecs_;
virtual void ComputeRowAMaxImpl(Vector &rows_norms, bool init) const
Compute the max-norm of the rows in the matrix.
MatrixSpace base class, corresponding to the Matrix base class.
virtual ~ExpandedMultiVectorMatrix()
Destructor.
void SetVector(Index i, SmartPtr< const Vector > vec)
Set a particular Vector at a given row position, replacing another vector if there has been one.
ExpandedMultiVectorMatrixSpace(Index nrows, const VectorSpace &vec_space, SmartPtr< const ExpansionMatrix > exp_matrix)
Constructor, given the number of rows (i.e., Vectors to be stored) and given the VectorSpace for the ...
SmartPtr< const ExpandedMultiVectorMatrixSpace > ExpandedMultiVectorMatrixOwnerSpace() const
Return the ExpandedMultiVectorMatrixSpace.
SmartPtr< ExpandedMultiVectorMatrix > MakeNewExpandedMultiVectorMatrix() const
virtual Matrix * MakeNew() const
Overloaded MakeNew method for the MatrixSpace base class.
virtual void TransMultVectorImpl(Number alpha, const Vector &x, Number beta, Vector &y) const
Matrix(transpose) vector multiply.
double Number
Type of all numbers.
SmartPtr< const VectorSpace > RowVectorSpace() const
Vector space for the rows.
SmartPtr< const VectorSpace > vec_space_
SmartPtr< const ExpansionMatrix > GetExpansionMatrix() const
Return the Expansion matrix.
EJournalLevel
Print Level Enum.
Number * x
Input: Starting point Output: Optimal solution.
int Index
Type of all indices of vectors, matrices etc.
const ExpandedMultiVectorMatrixSpace * owner_space_
ExpandedMultiVectorMatrix()
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.
ExpandedMultiVectorMatrix * MakeNewExpandedMultiVectorMatrix() const
Method for creating a new matrix of this specific type.
void operator=(const ExpandedMultiVectorMatrix &)
Overloaded Equals Operator.
Template class for Smart Pointers.
EJournalCategory
Category Selection Enum.
Index NRows() const
Number of rows.
virtual void ComputeColAMaxImpl(Vector &cols_norms, bool init) const
Compute the max-norm of the columns in the matrix.
virtual ~ExpandedMultiVectorMatrixSpace()
Destructor.
Class for Matrices with few rows that consists of Vectors, together with a premultiplied Expansion ma...
Class responsible for all message output.
virtual void MultVectorImpl(Number alpha, const Vector &x, Number beta, Vector &y) const
Matrix-vector multiply.
VectorSpace base class, corresponding to the Vector base class.
SmartPtr< const VectorSpace > RowVectorSpace() const
Accessor method for the VectorSpace for the rows.
SmartPtr< const ExpansionMatrix > GetExpansionMatrix() const
This is the matrix space for ExpandedMultiVectorMatrix.
SmartPtr< const ExpansionMatrix > exp_matrix_
SmartPtr< const Vector > GetVector(Index i) const
Get a Vector in a particular row as a const Vector.
virtual bool HasValidNumbersImpl() const
Method for determining if all stored numbers are valid (i.e., no Inf or Nan).
std::vector< SmartPtr< const Vector > > vecs_
space for storing the const Vector's