|
virtual | ~Matrix ()=default |
| Virtual Destructor.
|
|
virtual void | Print (ostream &os) const =0 |
| Generate text representation of the Matrix to a stream.
|
|
template<class Archive > |
void | serialize (Archive &archive) |
| Cereal serialization method.
|
|
virtual int | getNumElements () const =0 |
| Get the number of elements that needs to be recorded.
|
|
virtual variantTypes | getElement (int index) const =0 |
|
virtual void | startNewEpoch ()=0 |
|
virtual void | setDataType ()=0 |
| Set up a string representing the basic data type.
|
|
virtual const string & | getDataType () const =0 |
|
template<class Archive > |
void | serialize (Archive &archive) |
| Cereal serialization method.
|
|
|
| Matrix (string t="", string i="", int r=0, int c=0, BGFLOAT m=0.0) |
|
void | SetAttributes (string t, string i, int r, int c, BGFLOAT m, int d) |
| Convenience mutator.
|
|
| RecordableBase ()=default |
| prevents any code outside this class from creating a RecordableBase object
|
|
Definition at line 30 of file Matrix.h.
◆ Matrix()
Matrix::Matrix |
( |
string | t = "", |
|
|
string | i = "", |
|
|
int | r = 0, |
|
|
int | c = 0, |
|
|
BGFLOAT | m = 0.0 ) |
|
protected |
Initialize attributes at construction time. This is protected to prevent construction of Matrix objects themselves. Would be nice if C++ just allowed one to declare a class abstract. Really obsoleted since the Print() method is pure virtual now.
- Parameters
-
t | Matrix type (subclasses add legal values; basically, cheapo reflection) |
i | Matrix initialization (subclasses can also add legal values to this) |
r | rows in Matrix |
c | columns in Matrix |
m | multiplier used for initialization |
Definition at line 24 of file Matrix.cpp.
◆ Print()
virtual void Matrix::Print |
( |
ostream & | os | ) |
const |
|
pure virtual |
◆ serialize()
template<class Archive >
void Matrix::serialize |
( |
Archive & | archive | ) |
|
Cereal serialization method.
Definition at line 97 of file Matrix.h.
◆ SetAttributes()
void Matrix::SetAttributes |
( |
string | t, |
|
|
string | i, |
|
|
int | r, |
|
|
int | c, |
|
|
BGFLOAT | m, |
|
|
int | d ) |
|
protected |
Convenience mutator.
- Parameters
-
t | Matrix type (subclasses add legal values; basically, cheapo reflection) |
i | Matrix initialization (subclasses can also add legal values to this) |
r | rows in Matrix |
c | columns in Matrix |
m | multiplier used for initialization |
d | indicates one or two dimensional |
Definition at line 37 of file Matrix.cpp.
◆ cereal::access
friend class cereal::access |
|
friend |
◆ columns
◆ dimensions
One or two dimensional.
Definition at line 83 of file Matrix.h.
◆ init
"const" == nonzero values with a fixed constant, "random" == nonzero values with random numbers, or "implementation" == uses a built-in function of the specific subclass
Definition at line 78 of file Matrix.h.
◆ multiplier
BGFLOAT Matrix::multiplier |
|
protected |
Constant used for initialization.
Definition at line 82 of file Matrix.h.
◆ rows
◆ type
"complete" == all locations nonzero, "diag" == only diagonal elements nonzero, or "sparse" == nonzero values may be anywhere
Definition at line 73 of file Matrix.h.
The documentation for this class was generated from the following files: