Go to the documentation of this file.
7 #ifndef __IPMATRIX_HPP__
8 #define __IPMATRIX_HPP__
40 owner_space_(owner_space),
64 MultVectorImpl(alpha, x, beta, y);
80 TransMultVectorImpl(alpha, x, beta, y);
116 bool HasValidNumbers()
const;
121 inline Index NRows()
const;
124 inline Index NCols()
const;
144 ComputeRowAMaxImpl(rows_norms, init);
162 ComputeColAMaxImpl(cols_norms, init);
175 const std::string& name,
177 const std::string& prefix =
""
184 const std::string& name,
186 const std::string& prefix =
""
202 virtual void MultVectorImpl(
213 virtual void TransMultVectorImpl(
225 virtual void AddMSinvZImpl(
236 virtual void SinvBlrmZMTdBrImpl(
259 virtual void ComputeRowAMaxImpl(
268 virtual void ComputeColAMaxImpl(
274 virtual void PrintImpl(
278 const std::string& name,
280 const std::string& prefix
347 virtual Matrix* MakeNew()
const = 0;
419 #if COIN_IPOPT_VERBOSITY == 0
420 # define DBG_PRINT_MATRIX(__verbose_level, __mat_name, __mat)
422 # define DBG_PRINT_MATRIX(__verbose_level, __mat_name, __mat) \
423 if (dbg_jrnl.Verbosity() >= (__verbose_level)) { \
424 if (dbg_jrnl.Jnlst()!=NULL) { \
425 (__mat).Print(dbg_jrnl.Jnlst(), \
428 dbg_jrnl.IndentationLevel()*2, \
432 #endif // #if COIN_IPOPT_VERBOSITY == 0
MatrixSpace base class, corresponding to the Matrix base class.
void ComputeRowAMax(Vector &rows_norms, bool init=true) const
Compute the max-norm of the rows in the matrix.
void TransMultVector(Number alpha, const Vector &x, Number beta, Vector &y) const
Matrix(transpose) vector multiply.
const Index nRows_
Number of rows for all matrices of this type.
SmartPtr< const MatrixSpace > OwnerSpace() const
Return the owner MatrixSpace.
const SmartPtr< const MatrixSpace > owner_space_
const Index nCols_
Number of columns for all matrices of this type.
TaggedObject::Tag valid_cache_tag_
This file contains a base class for all exceptions and a set of macros to help with exceptions.
double Number
Type of all numbers.
void Set(Number alpha)
Set each element in the vector to the scalar alpha.
EJournalLevel
Print Level Enum.
Matrix(const MatrixSpace *owner_space)
Constructor.
int Index
Type of all indices of vectors, matrices etc.
Template class for Smart Pointers.
EJournalCategory
Category Selection Enum.
MatrixSpace(Index nRows, Index nCols)
Constructor, given the number rows and columns of all matrices generated by this MatrixSpace.
Index NRows() const
Number of rows.
Index NCols() const
Accessor function for the number of columns.
virtual ~MatrixSpace()
Destructor.
Class responsible for all message output.
void MultVector(Number alpha, const Vector &x, Number beta, Vector &y) const
Matrix-vector multiply.
bool IsMatrixFromSpace(const Matrix &matrix) const
Method to test if a given matrix belongs to a particular matrix space.
void ComputeColAMax(Vector &cols_norms, bool init=true) const
Compute the max-norm of the columns in the matrix.
virtual bool HasValidNumbersImpl() const
Method for determining if all stored numbers are valid (i.e., no Inf or Nan).
unsigned int Tag
Type for the Tag values.
Index NRows() const
Accessor function for the number of rows.
Index Dim() const
Dimension of the Vector.
Storing the reference count of all the smart pointers that currently reference it.
virtual ~Matrix()
Destructor.
Index NCols() const
Number of columns.