AQUAgpusph 4.1.2
Loading...
Searching...
No Matches
Public Member Functions
mat Class Reference

Matrix of real components. More...

#include <sphPrerequisites.h>

Public Member Functions

 mat ()
 Constructor.
 
vec const & operator[] (unsigned index) const
 Subscript operator to return a matrix row.
 
vecoperator[] (unsigned index)
 
vec operator* (const vec &V)
 
matoperator= (const mat &M)
 

Detailed Description

Matrix of real components.

The number of components depends on weather the 2D version or 3D version is compiled:

Constructor & Destructor Documentation

◆ mat()

mat::mat ( )
inline

Constructor.

The matrix will be initialized as a zeroes one.

Member Function Documentation

◆ operator*()

vec mat::operator* ( const vec V)
inline

Matrix-Vector Inner product operator.

Parameters
VVector to operate.
Returns
Resulting vector.

◆ operator=()

mat & mat::operator= ( const mat M)
inline

Assignment operator.

Parameters
MMatrix to copy.
Returns
Copied matrix.

◆ operator[]() [1/2]

vec & mat::operator[] ( unsigned  index)
inline

Subscript operator to return a matrix row.

Parameters
indexRow index.
Returns
Row vector.

◆ operator[]() [2/2]

vec const & mat::operator[] ( unsigned  index) const
inline

Subscript operator to return a matrix row.

Parameters
indexRow index.
Returns
Row vector.

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