MULTIPLY_ELEMENTS - multiply matrices element-by-element

This procedure computes C, the element-by-element multiplication of A times B: Cij =Aij * Bij.

Usage

The MULTIPLY_ELEMENTS stored procedure has the following syntax:
MULTIPLY_ELEMENTS(matrixA,matrixB,matrixC)
Parameters
matrixA
The name of input matrix A.
Type: NVARCHAR(ANY)
matrixB
The name of input matrix B.
Type: NVARCHAR(ANY)
matrixC
The name of output matrix C.
Type: NVARCHAR(ANY)
Returns
BOOLEAN TRUE always.

Examples

CALL nzm..SHAPE('1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16',
4,4,' A');
CALL nzm..SHAPE('1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16',4,4,'B');
CALL nzm..MULTIPLY_ELEMENTS('A','B','C'); 
CALL nzm..PRINT('B');
CALL nzm..DELETE_MATRIX('A');
CALL nzm..DELETE_MATRIX('B');
CALL nzm..DELETE_MATRIX('C');

 SHAPE
-------
 t
(1 row)

 SHAPE
-------
 t
(1 row)

 MULTIPLY_ELEMENTS
-------------------
 t
(1 row)

                               PRINT
--------------------------------------------------------------------
 -- matrix: B --
 1, 2, 3, 4
 5, 6, 7, 8
 9, 10, 11,12
 13, 14, 15, 16
(1 row)

 DELETE_MATRIX
---------------
 t
(1 row)

 DELETE_MATRIX
---------------
 t
(1 row)

 DELETE_MATRIX
---------------
 t
(1 row)