Matrix< T > Class Template Reference
[Utilities]
#include <Matrix.h>
List of all members.
Detailed Description
template<typename T>
class Matrix< T >
Class representing a matrix - used in HMM
Definition at line 14 of file Matrix.h.
Constructor & Destructor Documentation
template<typename T >
Matrix< T >::Matrix |
( |
size_t |
n, |
|
|
size_t |
m, |
|
|
T |
v = static_cast<T>(0) | |
|
) |
| | [inline] |
- Parameters:
-
| n | width of matrix |
| m | height of matrix |
| v | initial value for all fields |
Definition at line 145 of file Matrix.h.
Copycon
- Parameters:
-
Definition at line 155 of file Matrix.h.
Member Function Documentation
template<typename T >
T & Matrix< T >::at |
( |
size_t |
i, |
|
|
size_t |
j | |
|
) |
| | [inline] |
- Parameters:
-
- Returns:
- a reference to the element at i,m
Definition at line 174 of file Matrix.h.
template<typename T >
T Matrix< T >::get |
( |
size_t |
i, |
|
|
size_t |
j | |
|
) |
| | const [inline] |
- Parameters:
-
- Returns:
- element at i,m
Definition at line 189 of file Matrix.h.
template<typename T >
const size_t Matrix< T >::getM |
( |
|
) |
const [inline] |
- Returns:
- height of matrix
Definition at line 55 of file Matrix.h.
template<typename T >
const size_t Matrix< T >::getN |
( |
|
) |
const [inline] |
- Returns:
- width of matrix
Definition at line 52 of file Matrix.h.
template<typename T >
T& Matrix< T >::operator() |
( |
size_t |
i, |
|
|
size_t |
j | |
|
) |
| | [inline] |
- Parameters:
-
- Returns:
- a reference to the element at i,m
Definition at line 69 of file Matrix.h.
Multiply scalar with this matrix
- Parameters:
-
| scalar | scalar to multiply with |
- Returns:
- self
Definition at line 324 of file Matrix.h.
Multiply matrix with this matrix
- Parameters:
-
| right | matrix to multiply with |
- Returns:
- self
Definition at line 299 of file Matrix.h.
Add matrix to this matrix
- Parameters:
-
- Returns:
- self
Definition at line 253 of file Matrix.h.
Substract matrix from this matrix
- Parameters:
-
| right | matrix to substract |
- Returns:
- self
Definition at line 276 of file Matrix.h.
- Parameters:
-
| other | matrix to be copied |
- Returns:
- reference to self
Definition at line 211 of file Matrix.h.
template<typename T >
Row Matrix< T >::operator[] |
( |
size_t |
i |
) |
[inline] |
helper for two dimensional array-like accessing of values
- Parameters:
-
- Returns:
- a Row object for further access
Definition at line 96 of file Matrix.h.
template<typename T >
void Matrix< T >::set |
( |
size_t |
i, |
|
|
size_t |
j, |
|
|
T |
v | |
|
) |
| | [inline] |
- Parameters:
-
| i | row |
| j | column |
| v | element to be set to i,m |
Definition at line 205 of file Matrix.h.
Transpose Matrix. Note: this does not affect this matrix. If you want to do this, use transposeSelf instead!
- Returns:
- the transposed matrix.
Definition at line 241 of file Matrix.h.
Transpose Matrix. Note: this affects this matrix. If you do not want this, use transposed instead!
- Returns:
- self
Definition at line 233 of file Matrix.h.
The documentation for this class was generated from the following file: