7#ifndef __IPSYMSCALEDMATRIX_HPP__
8#define __IPSYMSCALEDMATRIX_HPP__
17class SymScaledMatrixSpace;
42 void SetUnscaledMatrix(
47 void SetUnscaledMatrixNonConst(
81 const std::string&
name,
142 scaling_->ElementWiseReciprocal();
167 return MakeNewSymScaledMatrix();
172 return MakeNewSymScaledMatrix();
184 return unscaled_matrix_space_;
Templated class which stores one entry for the CachedResult class.
Class responsible for all message output.
SymMatrixSpace base class, corresponding to the SymMatrix base class.
This is the base class for all derived symmetric matrix types.
This is the matrix space for SymScaledMatrix.
virtual SymMatrix * MakeNewSymMatrix() const
Pure virtual method for creating a new matrix of this specific type.
SmartPtr< const Vector > RowColScaling() const
return the vector for the row and column scaling
SmartPtr< const SymMatrixSpace > UnscaledMatrixSpace() const
return the matrix space for the unscaled matrix
virtual Matrix * MakeNew() const
Pure virtual method for creating a new Matrix of the corresponding type.
SymScaledMatrix * MakeNewSymScaledMatrix(bool allocate_unscaled_matrix=false) const
Method for creating a new matrix of this specific type.
SymScaledMatrixSpace & operator=(const SymScaledMatrixSpace &)
Default Assignment Operator.
SymScaledMatrixSpace()
Default constructor.
SymScaledMatrixSpace(const SmartPtr< const Vector > &row_col_scaling, bool row_col_scaling_reciprocal, const SmartPtr< const SymMatrixSpace > &unscaled_matrix_space)
Constructor, given the number of row and columns blocks, as well as the total number of rows and colu...
SmartPtr< const SymMatrixSpace > unscaled_matrix_space_
unscaled matrix space
SmartPtr< Vector > scaling_
Row scaling vector.
SymScaledMatrixSpace(const SymScaledMatrixSpace &)
Copy Constructor.
~SymScaledMatrixSpace()
Destructor.
Class for a Matrix in conjunction with its scaling factors for row and column scaling.
SmartPtr< const Vector > RowColScaling() const
return the vector for the row and column scaling
SymScaledMatrix(const SymScaledMatrix &)
Copy Constructor.
SmartPtr< const SymMatrix > GetUnscaledMatrix() const
Return the unscaled matrix in const form.
void operator=(const SymScaledMatrix &)
Default Assignment Operator.
virtual void MultVectorImpl(Number alpha, const Vector &x, Number beta, Vector &y) const
Matrix-vector multiply.
void SetUnscaledMatrix(const SmartPtr< const SymMatrix > unscaled_matrix)
Set the unscaled matrix.
SmartPtr< const SymScaledMatrixSpace > owner_space_
Matrix space stored as a SymScaledMatrixSpace.
SymScaledMatrix()
Default Constructor.
virtual void ComputeRowAMaxImpl(Vector &rows_norms, bool init) const
Compute the max-norm of the rows in the matrix.
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.
void SetUnscaledMatrixNonConst(const SmartPtr< SymMatrix > &unscaled_matrix)
Set the unscaled matrix in a non-const version.
SymScaledMatrix(const SymScaledMatrixSpace *owner_space)
Constructor, taking the owner_space.
SmartPtr< const SymMatrix > matrix_
const version of the unscaled matrix
SmartPtr< SymMatrix > GetUnscaledMatrixNonConst()
Return the unscaled matrix in non-const form.
~SymScaledMatrix()
Destructor.
virtual bool HasValidNumbersImpl() const
Method for determining if all stored numbers are valid (i.e., no Inf or Nan).
SmartPtr< SymMatrix > nonconst_matrix_
non-const version of the unscaled matrix
void ObjectChanged()
Objects derived from TaggedObject MUST call this method every time their internal state changes to up...
This file contains a base class for all exceptions and a set of macros to help with exceptions.
SmartPtr< const U > ConstPtr(const SmartPtr< U > &smart_ptr)
bool IsValid(const SmartPtr< U > &smart_ptr)
U * GetRawPtr(const SmartPtr< U > &smart_ptr)
ipindex Index
Type of all indices of vectors, matrices etc.
EJournalCategory
Category Selection Enum.
EJournalLevel
Print Level Enum.
ipnumber Number
Type of all numbers.