diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2018-01-31 20:41:02 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2018-01-31 20:41:02 +0100 |
commit | ef5008f5e46c4fe6d3728beff1d3277d02aae099 (patch) | |
tree | 3b01fe2150bd394dbf3a8b411d30de63145243f6 /include/clblast.h | |
parent | 37c5e8f58c8c6a1f8888938baa67691f8ecddaf4 (diff) |
Created the API and stubs for the HAD (hadamard-product) routines
Diffstat (limited to 'include/clblast.h')
-rw-r--r-- | include/clblast.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/clblast.h b/include/clblast.h index c4ff5290..9d3b9ea0 100644 --- a/include/clblast.h +++ b/include/clblast.h @@ -610,6 +610,16 @@ StatusCode Trsm(const Layout layout, const Side side, const Triangle triangle, c // Extra non-BLAS routines (level-X) // ================================================================================================= +// Element-wise vector product (Hadamard): SHAD/DHAD/CHAD/ZHAD/HHAD +template <typename T> +StatusCode Had(const size_t n, + const T alpha, + const cl_mem x_buffer, const size_t x_offset, const size_t x_inc, + const cl_mem y_buffer, const size_t y_offset, const size_t y_inc, + const T beta, + cl_mem z_buffer, const size_t z_offset, const size_t z_inc, + cl_command_queue* queue, cl_event* event = nullptr); + // Scaling and out-place transpose/copy (non-BLAS function): SOMATCOPY/DOMATCOPY/COMATCOPY/ZOMATCOPY/HOMATCOPY template <typename T> StatusCode Omatcopy(const Layout layout, const Transpose a_transpose, |