#include <jive/algebra/IdentMatrixObject.h>
jive::algebra::IdentMatrixObject::IdentMatrixObject |
( |
const String & |
name = "" , |
|
|
const idx_t |
size = 0 |
|
) |
| |
|
explicit |
virtual jive::algebra::IdentMatrixObject::~IdentMatrixObject |
( |
| ) |
|
|
protectedvirtual |
virtual void jive::algebra::IdentMatrixObject::readFrom |
( |
ObjectInput & |
in | ) |
|
|
virtual |
virtual void jive::algebra::IdentMatrixObject::writeTo |
( |
ObjectOutput & |
out | ) |
const |
|
virtual |
virtual Ref<Object> jive::algebra::IdentMatrixObject::clone |
( |
| ) |
const |
|
virtual |
virtual Shape jive::algebra::IdentMatrixObject::shape |
( |
| ) |
const |
|
virtual |
Returns the shape of this matrix. If s
denotes the returned Shape
object, then s
[0] equals the number of rows and s
[1] equals the number of columns in this matrix.
- Returns
- The shape of this matrix.
Implements jive::algebra::AbstractMatrix.
virtual void jive::algebra::IdentMatrixObject::matmul |
( |
const Vector & |
lhs, |
|
|
const Vector & |
rhs |
|
) |
| const |
|
virtual |
Multiplies the vector rhs with this matrix and stores the result in the vector lhs. The sizes of the two vectors must be compatible with the shape of this matrix.
- Parameters
-
lhs | - the result vector. |
rhs | - the vector to be multiplied by this matrix. |
- Precondition
lhs.size() == shape()[0] &&
rhs.size() == shape()[1]
Implements jive::algebra::AbstractMatrix.
virtual void jive::algebra::IdentMatrixObject::multiMatmul |
( |
Matrix & |
lhsVecs, |
|
|
IdxVector & |
lhsTags, |
|
|
const Matrix & |
rhsVecs, |
|
|
const IdxVector & |
rhsTags |
|
) |
| const |
|
virtual |
virtual void* jive::algebra::IdentMatrixObject::getExtByID |
( |
ExtensionID |
extID | ) |
const |
|
virtual |
virtual double jive::algebra::IdentMatrixObject::getValue |
( |
idx_t |
irow, |
|
|
idx_t |
jcol |
|
) |
| const |
|
virtual |
virtual void jive::algebra::IdentMatrixObject::getBlock |
( |
const Matrix & |
block, |
|
|
const IdxVector & |
irows, |
|
|
const IdxVector & |
jcols |
|
) |
| const |
|
virtual |
virtual void jive::algebra::IdentMatrixObject::getDiagonal |
( |
const Vector & |
diag | ) |
const |
|
virtual |
virtual void jive::algebra::IdentMatrixObject::getRowScales |
( |
const Vector & |
rscales | ) |
const |
|
virtual |
virtual SparseStruct jive::algebra::IdentMatrixObject::getStructure |
( |
| ) |
const |
|
virtual |
virtual SparseMatrix jive::algebra::IdentMatrixObject::toSparseMatrix |
( |
| ) |
const |
|
virtual |
virtual SparseMatrix jive::algebra::IdentMatrixObject::cloneSparseMatrix |
( |
| ) |
const |
|
virtual |
void jive::algebra::IdentMatrixObject::resize |
( |
idx_t |
size | ) |
|