#include <cMatrix2D.h>
List of all members.
Static Protected Member Functions |
static bool | isNullD (const double &value) |
static bool | isNullLD (const long double &value) |
static bool | isNull (const tValue &value) |
Detailed Description
template<class tValue>
class fib::algorithms::nD2::cMatrix2D< tValue >
Definition at line 54 of file cMatrix2D.h.
Constructor & Destructor Documentation
standardconstructor
- Parameters:
-
ulInSizeX | the size of the matrix in the x (first) direction |
ulInSizeY | the size of the matrix in the y (second) direction |
initValue | the value, with which to initialisize the matrix |
copyconstructor
- Parameters:
-
inMatrix | the matrix to copy |
Member Function Documentation
This operator applies the values of the given function to the values of this matrix.
- Returns:
- a reference to this matrix
- Parameters:
-
condition | the condition which should hold for counted values |
- Returns:
- the number of values for which the given condition is true
- Returns:
- the number of values which are 0
This method evalues the derivate of this matrix in the given direction. For this, from each element the higer neibourelement value in the direction will be subtracted. The last element in the direction is eleminated. The size of the matrix is reduced with 1 in the direction.
- Parameters:
-
direction | the direction in which to evalue the derivate
- 1: the position in the x (first) direction
- 2: the position in the y (second) direction
|
- Returns:
- a reference to this matrix
This method evalues the derivate of this matrix in the x (first) direction. For this, from each element the higer neibourelement value in the x direction will be subtracted. The last element in the x direction is eleminated. The size of the matrix is reduced with 1 in the x direction.
- Returns:
- a reference to this matrix
This method evalues the derivate of this matrix in the y (second) direction. For this, from each element the higer neibourelement value in the y direction will be subtracted. The last element in the y direction is eleminated. The size of the matrix is reduced with 1 in the y direction.
- Returns:
- a reference to this matrix
- Parameters:
-
condition | the condition which should hold for the values |
- Returns:
- a matrix with the bool values, which are the result of the given condition on the values of this matrix
This method retuns the a reference to the value on the given position (ulX, ulY) . Beware: It won't be checked, if the position is out of bounds.
- Parameters:
-
ulX | the position in the x (first) direction |
ulY | the position in the y (second) direction |
- Returns:
- a reference to the value on the given position (ulX, ulY)
This method retuns the a reference to the value on the given position (ulX, ulY) . Beware: It won't be checked, if the position is out of bounds.
- Parameters:
-
ulX | the position in the x (first) direction |
ulY | the position in the y (second) direction |
- Returns:
- a reference to the value on the given position (ulX, ulY)
- Parameters:
-
value | the value for which to check, if it is 0 |
- Returns:
- true if the given value is 0, else false
Definition at line 307 of file cMatrix2D.h.
- Parameters:
-
value | the value for which to check, if it is 0 |
- Returns:
- true if the given value is 0, else false
Definition at line 284 of file cMatrix2D.h.
- Parameters:
-
value | the value for which to check, if it is 0 |
- Returns:
- true if the given value is 0, else false
Definition at line 295 of file cMatrix2D.h.
- Returns:
- the maximum value in this matrix
- Returns:
- the minimum value in this matrix
This operator multiplys the values of the given matrix to the values of this matrix. Position not in both matrixes will be ignored.
- Parameters:
-
inMatrix | the matrix to multiply with |
- Returns:
- a reference to this matrix
This operator adds the values of the given matrix to the values of this matrix. Position not in both matrixes will be ignored.
- Parameters:
-
inMatrix | the matrix to add |
- Returns:
- a reference to this matrix
This operator subtracts the values of the given matrix from the values of this matrix. Position not in both matrixes will be ignored.
- Parameters:
-
inMatrix | the matrix to subtracts |
- Returns:
- a reference to this matrix
This operator divides the values of the given matrix with the values of this matrix. Position not in both matrixes will be ignored.
- Parameters:
-
inMatrix | the matrix to divide with |
- Returns:
- a reference to this matrix
assignment operator This operator copies the given matrixdata into this matrix.
- Parameters:
-
inMatrix | the matrix to copy |
- Returns:
- a reference to this matrix, with the copied values
This method prints this matrix in an readebel for to the given stream.
- Parameters:
-
outStream | the stream wher to print this matrix to |
- Parameters:
-
ulInSizeX | the new size of the matrix in the x (first) direction |
ulInSizeY | the new size of the matrix in the y (second) direction |
initValue | the value, with which to initialisize the matrix new values |
This method sets the the given value on the given position (ulX, ulY) .
- Parameters:
-
ulX | the position in the x (first) direction |
ulY | the position in the y (second) direction |
value | the value to set |
- Returns:
- true if the value was set, else false (e.g. if the position is out of bounds)
- Returns:
- a pair (x, y) with the size of the matrix in x (first) and y (second) direction
- Returns:
- the sum of all values in this matrix
Member Data Documentation
Matrix with its values. Position (x,y) is element: x + y * ulSizeX
Definition at line 61 of file cMatrix2D.h.
The size of the matrix in the x (first) direction.
Definition at line 66 of file cMatrix2D.h.
The size of the matrix in the y (second) direction.
Definition at line 71 of file cMatrix2D.h.
The documentation for this class was generated from the following file: