golib  0.5
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
goMatrixSignal< T > Class Template Reference

Public Member Functions

 goMatrixSignal (goSize_t y=4, goSize_t x=4, bool linear=true)
 
 goMatrixSignal (const goMatrixSignal< T > &other)
 
virtual bool setData (goSignal3DBase< T > *data)
 
virtual bool resize (goSize_t rows, goSize_t columns)
 
virtual void transpose ()
 
virtual goMatrixSignal< T > & operator= (const goMatrixSignal< T > &other)
 
goSignal3DBase< T > * getData ()
 
const goSignal3DBase< T > * getData () const
 
bool isLinear () const
 
goSize_t getColumns () const
 
goSize_t getRows () const
 
int dim1 () const
 
int dim2 () const
 
const goMatrixSignal< T > & copy () const
 
T & elem (goSize_t i, goSize_t j)
 
goSize_t getSizeX () const
 
goSize_t getSizeY () const
 
T & operator() (goIndex_t i, goIndex_t j)
 
const T & operator() (goIndex_t i, goIndex_t j) const
 
goRowVector< T > & operator[] (goSize_t y)
 
const goRowVector< T > & operator[] (goSize_t y) const
 
goMatrixSignal< T > operator* (const goMatrixSignal< T > &other)
 
goMatrixSignal< T > operator- (const goMatrixSignal< T > &other)
 
goMatrixSignal< T > operator+ (const goMatrixSignal< T > &other)
 
goMatrixSignal< T > & operator*= (const goMatrixSignal< T > &other)
 
goMatrixSignal< T > & operator+= (const goMatrixSignal< T > &other)
 
goMatrixSignal< T > & operator-= (const goMatrixSignal< T > &other)
 
goVector< T > operator* (const goVector< T > &v)
 
goMatrixSignal< T > & operator*= (T scalar)
 
goMatrixSignal< T > & operator/= (T scalar)
 
bool multiplyElements (const goMatrixSignal< T > &other)
 Element-wise multiplication: this(i,j) = this(i,j) * other(i,j). More...
 
norm () const
 L2 norm. More...
 
void setUnity ()
 
void setIdentity ()
 
void fill (T v)
 
void print ()
 

Protected Member Functions

 goMatrixSignal (goSignal3DBase< T > *data)
 
bool initializeRows ()
 

Protected Attributes

bool linearStorage
 
bool externalData
 
goSignal3DBase< T > * matrix
 
goSubSignal3D< T > * rows
 
goRowVector< T > * rowVectors
 

Member Function Documentation

◆ multiplyElements()

template<class T >
bool goMatrixSignal< T >::multiplyElements ( const goMatrixSignal< T > &  other)

Element-wise multiplication: this(i,j) = this(i,j) * other(i,j).

Parameters
otherOther matrix.
Returns
True if successful, false otherwise, e.g. when dimensions do not match (check logfile).

◆ norm()

template<class T >
T goMatrixSignal< T >::norm ( ) const

L2 norm.

Returns
$ \sqrt{tr(M^\top \cdot M)}$

The documentation for this class was generated from the following files: