From fc1f9ab236a93261293a05f525ce3903019e10eb Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Thu, 26 Dec 2013 17:13:26 +0400 Subject: [PATCH] removed unnecessary data copying --- modules/core/src/matmul.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/matmul.cpp b/modules/core/src/matmul.cpp index 16eb6e087f..dc90ac447c 100644 --- a/modules/core/src/matmul.cpp +++ b/modules/core/src/matmul.cpp @@ -724,7 +724,7 @@ static bool ocl_gemm( InputArray matA, InputArray matB, double alpha, UMat A = matA.getUMat(), B = matB.getUMat(), D = matD.getUMat(); if (haveC) - ctrans ? transpose(matC, D) : matC.getMat().copyTo(D); // TODO fix it as soon as .copyTo works as expected + ctrans ? transpose(matC, D) : matC.copyTo(D); else D.setTo(Scalar::all(0));