Direct Graphical Models  v.1.7.0
DirectGraphicalModels::parallel Namespace Reference

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...
 

Function Documentation

◆ gemm()

void DirectGraphicalModels::parallel::gemm ( const Mat &  A,
const Mat &  B,
float  alpha,
const Mat &  C,
float  beta,
Mat &  res 
)
inline

Fast generalized matrix multiplication.

Parameters
Afirst multiplied input matrix that should have CV_32FC1, CV_64FC1, CV_32FC2, or CV_64FC2 type.
Bsecond multiplied input matrix of the same type as src1.
alphaweight of the matrix product.
Cthird optional delta matrix added to the matrix product; it should have the same type as src1 and src2.
betaweight of src3.
resoutput matrix; it has the proper size and the same type as input matrices.

Definition at line 112 of file parallel.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shuffleRows()

void DirectGraphicalModels::parallel::shuffleRows ( Mat &  m)
inline

Randomly shuffles the rows of the input matrix.

This function supports PPL. When using PPL, the result of this function is biased.

Parameters
[in,out]mThe input/output data, which rows should be shffled.
Todo:
Eliminate the bias, caused by parallel processing.

Definition at line 282 of file parallel.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sortRows() [1/2]

template<typename T >
void DirectGraphicalModels::parallel::sortRows ( Mat &  m,
int  x 
)
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.

Template Parameters
TThe type of elements in matrix.
Parameters
[in,out]mThe input/output data, which rows should be sorted.
xThe dimension along which the matrix is sorted.

Definition at line 222 of file parallel.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sortRows() [2/2]

template<typename T >
void DirectGraphicalModels::parallel::sortRows ( Mat &  m)
inline

Sorts the rows of the input matrix.

This function supports PPL.

Template Parameters
TThe type of elements in matrix.
Parameters
[in,out]mThe input/output data, which rows should be sorted.

Definition at line 268 of file parallel.h.

Here is the call graph for this function: