DIVIDE_ELEMENTS - Matrizen Element für Element unterteilen

Bei diesem Verfahren wird die Matrix C durch elementweise Division der Matrix A durch die Matrix B berechnet: Ci = Aij/Bij.

Verwendung

Die gespeicherte Prozedur DIVIDE_ELEMENTS hat die folgende Syntax:
DIVIDE_ELEMENTS matrixA,matrixB,matrixC )
Parameter
matrixA
Der Name der Eingabematrix A.
Typ: NVARCHAR(ANY)
matrixB
Der Name der Eingabematrix B.
Typ: NVARCHAR(ANY)
matrixC
Der Name der Ausgabematrix C.
Typ: NVARCHAR(ANY)
Rückgabe
BOOLEAN TRUE immer.

Beispiele

CALL nzm..SHAPE('1,4,9,16,25,36,49,64,81',3,3,'A');
CALL nzm..SHAPE('1,2,3,4,5,6,7,8,9',3,3,'B');
CALL nzm..DIVIDE_ELEMENTS('A', 'B', 'C');
CALL nzm..PRINT('C');
CALL nzm..DELETE_MATRIX('A' );
CALL nzm..DELETE_MATRIX('B' );
CALL nzm..DELETE_MATRIX('C' );

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

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

 DIVIDE_ELEMENTS
-----------------
 t
(1 row)

                  PRINT
-----------------------------------------
 -- matrix: C --
 1, 2, 3 
 4, 5, 6
 7, 8, 9
(1 row)

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

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

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