Class DoubleMatrix is a storage for matrices with static size.
More...
#include <glmath.h>
Public Member Functions |
| GLMatrix () |
| Empty constructor.
|
| ~GLMatrix () |
| Destrcutor.
|
| GLMatrix (const GLMatrix &matrix) |
| Copy constructor.
|
void | make_diagonal (double zero=0.0, double diag=1.0) |
| Creates a diagonal matrix.
|
double & | operator() (int row, int column) |
| Accesses an element of the matrix.
|
const double & | operator() (int row, int column) const |
| Accesses an element of the matrix.
|
Protected Attributes |
double * | data |
| Matrix elements.
|
Detailed Description
template<int rows, int columns>
class crp::GLMatrix< rows, columns >
Class DoubleMatrix is a storage for matrices with static size.
Constructor & Destructor Documentation
template<int rows, int columns>
template<int rows, int columns>
template<int rows, int columns>
Copy constructor.
- Parameters:
-
Member Function Documentation
template<int rows, int columns>
void crp::GLMatrix< rows, columns >::make_diagonal |
( |
double |
zero = 0.0 , |
|
|
double |
diag = 1.0 |
|
) |
| [inline] |
Creates a diagonal matrix.
- Parameters:
-
zero | Zero element |
diag | Element in the diagonal |
template<int rows, int columns>
const double& crp::GLMatrix< rows, columns >::operator() |
( |
int |
row, |
|
|
int |
column |
|
) |
| const [inline] |
Accesses an element of the matrix.
- Parameters:
-
row | Row coordinate of the element |
column | Column coordinate of the element |
- Returns:
- Array value
template<int rows, int columns>
double& crp::GLMatrix< rows, columns >::operator() |
( |
int |
row, |
|
|
int |
column |
|
) |
| [inline] |
Accesses an element of the matrix.
- Parameters:
-
row | Row coordinate of the element |
column | Column coordinate of the element |
- Returns:
- Array cell values
Field Documentation
template<int rows, int columns>
The documentation for this class was generated from the following file: