#include <IpDiagMatrix.hpp>
The diagonal is stored as a Vector.
Public Member Functions | |
void | SetDiag (const Vector &diag) |
Method for setting the diagonal elements (as a Vector). | |
SmartPtr< const Vector > | GetDiag () const |
Method for setting the diagonal elements. | |
Constructors / Destructors | |
DiagMatrix (const SymMatrixSpace *owner_space) | |
Constructor, given the corresponding matrix space. | |
~DiagMatrix () | |
Destructor. | |
Protected Member Functions | |
Methods overloaded from matrix | |
virtual void | MultVectorImpl (Number alpha, const Vector &x, Number beta, Vector &y) const |
Method for determining if all stored numbers are valid (i.e., no Inf or Nan). | |
virtual bool | HasValidNumbersImpl () const |
Method for determining if all stored numbers are valid (i.e., no Inf or Nan). | |
virtual void | PrintImpl (const Journalist &jnlst, EJournalLevel level, EJournalCategory category, const std::string &name, Index indent, const std::string &prefix) const |
Method for determining if all stored numbers are valid (i.e., no Inf or Nan). |
DiagMatrix | ( | const SymMatrixSpace * | owner_space | ) |
Constructor, given the corresponding matrix space.
~DiagMatrix | ( | ) |
Destructor.
void SetDiag | ( | const Vector & | diag | ) | [inline] |
Method for setting the diagonal elements (as a Vector).
void MultVectorImpl | ( | Number | alpha, | |
const Vector & | x, | |||
Number | beta, | |||
Vector & | y | |||
) | const [protected, virtual] |
Method for determining if all stored numbers are valid (i.e., no Inf or Nan).
Implements Matrix.
References Vector::Axpy(), DBG_ASSERT, Vector::Dim(), SymMatrix::Dim(), Ipopt::IsValid(), Vector::MakeNew(), Vector::Scal(), and Vector::Set().
bool HasValidNumbersImpl | ( | ) | const [protected, virtual] |
Method for determining if all stored numbers are valid (i.e., no Inf or Nan).
Reimplemented from Matrix.
References DBG_ASSERT, and Ipopt::IsValid().
void PrintImpl | ( | const Journalist & | jnlst, | |
EJournalLevel | level, | |||
EJournalCategory | category, | |||
const std::string & | name, | |||
Index | indent, | |||
const std::string & | prefix | |||
) | const [protected, virtual] |
Method for determining if all stored numbers are valid (i.e., no Inf or Nan).
Implements Matrix.
References SymMatrix::Dim(), Ipopt::IsValid(), Journalist::Printf(), and Journalist::PrintfIndented().