Direct Graphical Models
v.1.7.0
|
Functions | |
void | gemm (const Mat &A, const Mat &B, float alpha, const Mat &C, float beta, Mat &res) |
Fast generalized matrix multiplication. More... | |
template<typename T > | |
void | sortRows (Mat &m, int x) |
Sorts the rows of the input matrix by the given dimension. More... | |
template<typename T > | |
void | sortRows (Mat &m) |
Sorts the rows of the input matrix. More... | |
void | shuffleRows (Mat &m) |
Randomly shuffles the rows of the input matrix. More... | |
|
inline |
Fast generalized matrix multiplication.
A | first multiplied input matrix that should have CV_32FC1, CV_64FC1, CV_32FC2, or CV_64FC2 type. |
B | second multiplied input matrix of the same type as src1. |
alpha | weight of the matrix product. |
C | third optional delta matrix added to the matrix product; it should have the same type as src1 and src2. |
beta | weight of src3. |
res | output matrix; it has the proper size and the same type as input matrices. |
Definition at line 112 of file parallel.h.
|
inline |
Randomly shuffles the rows of the input matrix.
This function supports PPL. When using PPL, the result of this function is biased.
[in,out] | m | The input/output data, which rows should be shffled. |
Definition at line 282 of file parallel.h.
|
inline |
Sorts the rows of the input matrix by the given dimension.
The result of the sorting may is expressed as: \( m_{x,y} < m_{x,y+1}, \forall y \).
This function supports PPL.
T | The type of elements in matrix. |
[in,out] | m | The input/output data, which rows should be sorted. |
x | The dimension along which the matrix is sorted. |
Definition at line 222 of file parallel.h.
|
inline |
Sorts the rows of the input matrix.
This function supports PPL.
T | The type of elements in matrix. |
[in,out] | m | The input/output data, which rows should be sorted. |
Definition at line 268 of file parallel.h.