From c2607fa0321a20fa2afadc4923e73779f6be24cd Mon Sep 17 00:00:00 2001 From: dwchoo <50813484+dwchoo@users.noreply.github.com> Date: Thu, 11 Jan 2024 14:25:44 +0000 Subject: [PATCH 1/3] ADD MultiplyWithStream --- cuda/arithm.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cuda/arithm.go b/cuda/arithm.go index 5c5f4f31..e170cf6d 100644 --- a/cuda/arithm.go +++ b/cuda/arithm.go @@ -226,6 +226,14 @@ func Multiply(src1, src2 GpuMat, dst *GpuMat) { C.GpuMultiply(src1.p, src2.p, dst.p, nil) } +// MultiplyWithStream computes a matrix-matrix or matrix-scalar multiplication. +// +// For further details, please see: +// https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga124315aa226260841e25cc0b9ea99dc3 +func MultiplyWithStream(src1, src2 GpuMat, dst *GpuMat, s Stream) { + C.GpuMultiply(src1.p, src2.p, dst.p, s.p) +} + // Sqr computes a square value of each matrix element. // // For further details, please see: From e0c7b111b2ee1401e27f6d340df5c344ab386ade Mon Sep 17 00:00:00 2001 From: dwchoo <50813484+dwchoo@users.noreply.github.com> Date: Thu, 11 Jan 2024 14:39:38 +0000 Subject: [PATCH 2/3] Change opencv link --- cuda/arithm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cuda/arithm.go b/cuda/arithm.go index e170cf6d..ad741d9d 100644 --- a/cuda/arithm.go +++ b/cuda/arithm.go @@ -221,7 +221,7 @@ func MinWithStream(src1, src2 GpuMat, dst *GpuMat, s Stream) { // Multiply computes a matrix-matrix or matrix-scalar multiplication. // // For further details, please see: -// https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga124315aa226260841e25cc0b9ea99dc3 +// https://docs.opencv.org/4.x/d8/d34/group__cudaarithm__elem.html#ga497cc0615bf717e1e615143b56f00591 func Multiply(src1, src2 GpuMat, dst *GpuMat) { C.GpuMultiply(src1.p, src2.p, dst.p, nil) } @@ -229,7 +229,7 @@ func Multiply(src1, src2 GpuMat, dst *GpuMat) { // MultiplyWithStream computes a matrix-matrix or matrix-scalar multiplication. // // For further details, please see: -// https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga124315aa226260841e25cc0b9ea99dc3 +// https://docs.opencv.org/4.x/d8/d34/group__cudaarithm__elem.html#ga497cc0615bf717e1e615143b56f00591 func MultiplyWithStream(src1, src2 GpuMat, dst *GpuMat, s Stream) { C.GpuMultiply(src1.p, src2.p, dst.p, s.p) } From d1ffff79c4455ae600980df4b8cdbf2ef53edd9c Mon Sep 17 00:00:00 2001 From: dwchoo <50813484+dwchoo@users.noreply.github.com> Date: Thu, 11 Jan 2024 14:59:02 +0000 Subject: [PATCH 3/3] FIX link --- cuda/arithm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cuda/arithm.go b/cuda/arithm.go index ad741d9d..ed5a0004 100644 --- a/cuda/arithm.go +++ b/cuda/arithm.go @@ -221,7 +221,7 @@ func MinWithStream(src1, src2 GpuMat, dst *GpuMat, s Stream) { // Multiply computes a matrix-matrix or matrix-scalar multiplication. // // For further details, please see: -// https://docs.opencv.org/4.x/d8/d34/group__cudaarithm__elem.html#ga497cc0615bf717e1e615143b56f00591 +// https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga497cc0615bf717e1e615143b56f00591 func Multiply(src1, src2 GpuMat, dst *GpuMat) { C.GpuMultiply(src1.p, src2.p, dst.p, nil) } @@ -229,7 +229,7 @@ func Multiply(src1, src2 GpuMat, dst *GpuMat) { // MultiplyWithStream computes a matrix-matrix or matrix-scalar multiplication. // // For further details, please see: -// https://docs.opencv.org/4.x/d8/d34/group__cudaarithm__elem.html#ga497cc0615bf717e1e615143b56f00591 +// https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga497cc0615bf717e1e615143b56f00591 func MultiplyWithStream(src1, src2 GpuMat, dst *GpuMat, s Stream) { C.GpuMultiply(src1.p, src2.p, dst.p, s.p) }