MaMiCo 1.2
Loading...
Searching...
No Matches
tarch::la::Matrix< rows, cols, T > Class Template Reference

#include <Matrix.h>

Public Member Functions

 Matrix ()
 Two constructors, a default one and a constructor, which initializes all elemnet of the matrix with entry t.
 
 Matrix (const T &t)
 
T & operator() (int i, int j)
 operator(i, j) gives back the the element (i, j)
 
const T & operator() (int i, int j) const
 

Private Attributes

_entries [rows][cols]
 

Detailed Description

template<int rows, int cols, class T>
class tarch::la::Matrix< rows, cols, T >

used to define 2-D matrices of arbitrary types.

Template Parameters
rowsdefines the number f rows
colsdefines the number f columns
Tdata type
Author
Philipp Neumann

Constructor & Destructor Documentation

◆ Matrix()

template<int rows, int cols, class T>
tarch::la::Matrix< rows, cols, T >::Matrix ( )
inline

Two constructors, a default one and a constructor, which initializes all elemnet of the matrix with entry t.

Parameters
tthe initial value for all elemnts of the matrix.

Member Function Documentation

◆ operator()()

template<int rows, int cols, class T>
T & tarch::la::Matrix< rows, cols, T >::operator() ( int i,
int j )
inline

operator(i, j) gives back the the element (i, j)

Parameters
irow index
jcolumn index

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