[−][src]Function opencv::cudaarithm::gemm
pub fn gemm(
src1: &dyn ToInputArray,
src2: &dyn ToInputArray,
alpha: f64,
src3: &dyn ToInputArray,
beta: f64,
dst: &mut dyn ToOutputArray,
flags: i32,
stream: &mut Stream
) -> Result<()>
Performs generalized matrix multiplication.
Parameters
- src1: First multiplied input matrix that should have CV_32FC1 , CV_64FC1 , CV_32FC2 , or CV_64FC2 type.
- src2: Second multiplied input matrix of the same type as src1 .
- alpha: Weight of the matrix product.
- src3: Third optional delta matrix added to the matrix product. It should have the same type as src1 and src2 .
- beta: Weight of src3 .
- dst: Destination matrix. It has the proper size and the same type as input matrices.
- flags: Operation flags:
- GEMM_1_T transpose src1
- GEMM_2_T transpose src2
- GEMM_3_T transpose src3
- stream: Stream for the asynchronous version.
The function performs generalized matrix multiplication similar to the gemm functions in BLAS level 3. For example, gemm(src1, src2, alpha, src3, beta, dst, GEMM_1_T + GEMM_3_T) corresponds to
Note: Transposition operation doesn't support CV_64FC2 input type.
See also
gemm
C++ default parameters
- flags: 0
- stream: Stream::Null()