#include <IpZeroMatrix.hpp>
Public Member Functions | |
Constructors / Destructors | |
ZeroMatrix (const MatrixSpace *owner_space) | |
Constructor, taking the corresponding matrix space. | |
~ZeroMatrix () | |
Destructor. | |
Protected Member Functions | |
Methods overloaded from matrix | |
virtual void | MultVectorImpl (Number alpha, const Vector &x, Number beta, Vector &y) const |
Matrix-vector multiply. | |
virtual void | TransMultVectorImpl (Number alpha, const Vector &x, Number beta, Vector &y) const |
Matrix(transpose) vector multiply. | |
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. |
ZeroMatrix | ( | const MatrixSpace * | owner_space | ) |
Constructor, taking the corresponding matrix space.
~ZeroMatrix | ( | ) |
Destructor.
void MultVectorImpl | ( | Number | alpha, | |
const Vector & | x, | |||
Number | beta, | |||
Vector & | y | |||
) | const [protected, virtual] |
Matrix-vector multiply.
Computes y = alpha * Matrix * x + beta * y
Implements Matrix.
References DBG_ASSERT, Vector::Dim(), Matrix::NCols(), Matrix::NRows(), Vector::Scal(), and Vector::Set().
void TransMultVectorImpl | ( | Number | alpha, | |
const Vector & | x, | |||
Number | beta, | |||
Vector & | y | |||
) | const [protected, virtual] |
Matrix(transpose) vector multiply.
Computes y = alpha * Matrix^T * x + beta * y
Implements Matrix.
References DBG_ASSERT, Vector::Dim(), Matrix::NCols(), Matrix::NRows(), Vector::Scal(), and Vector::Set().
void PrintImpl | ( | const Journalist & | jnlst, | |
EJournalLevel | level, | |||
EJournalCategory | category, | |||
const std::string & | name, | |||
Index | indent, | |||
const std::string & | prefix | |||
) | const [protected, virtual] |
Print detailed information about the matrix.
Implements Matrix.
References Matrix::NCols(), Matrix::NRows(), Journalist::Printf(), and Journalist::PrintfIndented().