9 #ifndef __IPSYMSCALEDMATRIX_HPP__
10 #define __IPSYMSCALEDMATRIX_HPP__
19 class SymScaledMatrixSpace;
72 const std::string& name,
74 const std::string& prefix)
const;
116 bool row_col_scaling_reciprocal,
122 scaling_ = row_col_scaling->MakeNewCopy();
123 if (row_col_scaling_reciprocal) {
137 if (allocate_unscaled_matrix) {
Number * x
Input: Starting point Output: Optimal solution.
Class responsible for all message output.
Template class for Smart Pointers.
SymMatrixSpace base class, corresponding to the SymMatrix base class.
Index Dim() const
Accessor method for the dimension of the matrices in this matrix space.
This is the base class for all derived symmetric matrix types.
This is the matrix space for SymScaledMatrix.
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 totel number of rows and colu...
virtual Matrix * MakeNew() const
Overloaded MakeNew method for the MatrixSpace base class.
SmartPtr< const SymMatrixSpace > unscaled_matrix_space_
unscaled matrix space
SmartPtr< Vector > scaling_
Row scaling vector.
SymScaledMatrixSpace(const SymScaledMatrixSpace &)
Copy Constructor.
SymScaledMatrixSpace & operator=(const SymScaledMatrixSpace &)
Overloaded Equals Operator.
~SymScaledMatrixSpace()
Destructor.
virtual SymMatrix * MakeNewSymMatrix() const
Overloaded method from SymMatrixSpace.
SmartPtr< const Vector > RowColScaling() const
return the vector for the row and column scaling
SymScaledMatrix * MakeNewSymScaledMatrix(bool allocate_unscaled_matrix=false) const
Method for creating a new matrix of this specific type.
SmartPtr< const SymMatrixSpace > UnscaledMatrixSpace() const
return the matrix space for the unscaled matrix
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 &)
Overloaded Equals 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...
SmartPtr< const U > ConstPtr(const SmartPtr< U > &smart_ptr)
bool IsValid(const SmartPtr< U > &smart_ptr)
U * GetRawPtr(const SmartPtr< U > &smart_ptr)
EJournalCategory
Category Selection Enum.
int Index
Type of all indices of vectors, matrices etc.
EJournalLevel
Print Level Enum.
double Number
Type of all numbers.