Jive reference manual
|
#include <jive/algebra/SparseMatrixObject.h>
Public Member Functions | |
SparseMatrixObject (const String &name="", int traits=0) | |
SparseMatrixObject (const String &name, const SparseMatrix &matrix, int traits=0) | |
virtual void | readFrom (ObjectInput &in) |
virtual void | writeTo (ObjectOutput &out) const |
virtual Ref< Object > | clone () const |
virtual Shape | shape () const |
Returns the shape of this matrix. More... | |
idx_t | size (int idim) const |
virtual void | matmul (const Vector &lhs, const Vector &rhs) const |
virtual void | multiMatmul (Matrix &lhsVecs, IdxVector &lhsTags, const Matrix &rhsVecs, const IdxVector &rhsTags) const |
virtual bool | hasTrait (const String &trait) const |
virtual void * | getExtByID (ExtensionID extID) const |
virtual double | getValue (idx_t irow, idx_t jcol) const |
virtual void | getBlock (const Matrix &block, const IdxVector &irows, const IdxVector &jcols) const |
virtual void | getDiagonal (const Vector &diag) const |
virtual void | getRowScales (const Vector &rscales) const |
virtual SparseStruct | getStructure () const |
virtual SparseMatrix | toSparseMatrix () const |
virtual SparseMatrix | cloneSparseMatrix () const |
virtual void | printTo (PrintWriter &out) const |
void | setToZero () |
void | setMatrix (const SparseMatrix &matrix) |
void | addMatrix (const SparseMatrix &rhs, double scale=1.0) |
void | setValues (const Vector &values) |
idx_t | nonZeroCount () const |
IdxVector | getRowOffsets () const |
IdxVector | getColumnIndices () const |
Vector | getValues () const |
void | setOptions (int options) |
int | getOptions () const |
int | getTraits () const |
bool | isSymmetric () const |
![]() | |
virtual void | matmul (const Vector &lhs, const Vector &rhs) const =0 |
Matrix-vector multiplication. More... | |
bool | isSquare () const |
Tests whether this matrix is square. More... | |
virtual jem::Class * | getClass () const |
Returns the Class instance representing the runtime class of this object. More... | |
![]() | |
virtual String | toString () const |
Returns a short textual description of this object. More... | |
virtual long | hashValue () const |
Returns a hash value for this object. More... | |
virtual bool | equals (const Ref< Object > &obj) const |
Tests whether two objects are equal. More... | |
Ref< Object > | clone () const |
Returns a copy of this object. More... | |
![]() | |
virtual void | getDiagonal (const Vector &diag) const =0 |
virtual void | getRowScales (const Vector &scale) const =0 |
Static Public Attributes | |
static const int | SYMMETRIC |
static const int | ENABLE_BLOCKING |
![]() | |
static const jem::byte | ID [1] |
![]() | |
static const jem::byte | ID [1] |
![]() | |
static const jem::byte | ID [1] |
![]() | |
static const jem::byte | ID [1] |
Protected Member Functions | |
virtual | ~SparseMatrixObject () |
![]() | |
Collectable () | |
Creates an empty Collectable . More... | |
~Collectable () | |
Frees resources. More... | |
![]() | |
virtual | ~DiagMatrixExtension () |
![]() | |
virtual | ~Interface () |
Empty destructor. More... | |
![]() | |
virtual | ~MultiMatmulExtension () |
![]() | |
virtual | ~DirectMatrixExtension () |
![]() | |
virtual | ~SparseMatrixExtension () |
![]() | |
virtual | ~Clonable () |
virtual void | emitVTable_ () |
![]() | |
virtual | ~Serializable () |
virtual void | emitVtableFunc_ () |
Additional Inherited Members | |
![]() | |
typedef AbstractMatrix | Self |
The type of this class. More... | |
typedef jem::Tuple< int, 2 > | Shape |
A type representing the shape of a matrix. More... | |
typedef util::Vector | Vector |
A vector type. More... | |
![]() | |
static jem::Class * | getType () |
![]() | |
static Class * | getType () |
Returns the Class instance representing the Object class. More... | |
![]() | |
jem::util::Event< Self & > | newShapeEvent |
Signals that the shape of this matrix has changed. More... | |
jem::util::Event< Self & > | newValuesEvent |
Signals that the contents of this matrix have been modified. More... | |
|
explicit |
|
explicit |
|
protectedvirtual |
|
virtual |
Implements jem::io::Serializable.
|
virtual |
Implements jem::io::Serializable.
Implements jem::Clonable.
|
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.
Implements jive::algebra::AbstractMatrix.
idx_t jive::algebra::SparseMatrixObject::size | ( | int | idim | ) | const |
|
virtual |
|
virtual |
Implements jive::algebra::MultiMatmulExtension.
|
virtual |
|
virtual |
|
virtual |
Implements jive::algebra::DirectMatrixExtension.
|
virtual |
Implements jive::algebra::DirectMatrixExtension.
|
virtual |
|
virtual |
|
virtual |
Implements jive::algebra::SparseMatrixExtension.
|
virtual |
Implements jive::algebra::SparseMatrixExtension.
|
virtual |
Implements jive::algebra::SparseMatrixExtension.
|
virtual |
void jive::algebra::SparseMatrixObject::setToZero | ( | ) |
void jive::algebra::SparseMatrixObject::setMatrix | ( | const SparseMatrix & | matrix | ) |
void jive::algebra::SparseMatrixObject::addMatrix | ( | const SparseMatrix & | rhs, |
double | scale = 1.0 |
||
) |
void jive::algebra::SparseMatrixObject::setValues | ( | const Vector & | values | ) |
idx_t jive::algebra::SparseMatrixObject::nonZeroCount | ( | ) | const |
IdxVector jive::algebra::SparseMatrixObject::getRowOffsets | ( | ) | const |
IdxVector jive::algebra::SparseMatrixObject::getColumnIndices | ( | ) | const |
Vector jive::algebra::SparseMatrixObject::getValues | ( | ) | const |
void jive::algebra::SparseMatrixObject::setOptions | ( | int | options | ) |
int jive::algebra::SparseMatrixObject::getOptions | ( | ) | const |
int jive::algebra::SparseMatrixObject::getTraits | ( | ) | const |
bool jive::algebra::SparseMatrixObject::isSymmetric | ( | ) | const |
|
static |
|
static |