ABS_ELEMENTS - ABS por elementos (operación de matriz completa)

Este procedimiento implementa el cálculo del valor absoluto elemental.

Uso

Este procedimiento almacenado ABS_ELEMENTS tiene la siguiente sintaxis:

ABS_ELEMENTS( 'matrixIn','matrixOut' )
Parámetros
matrixIn
El nombre de la matriz de entrada.
Tipo NVARCHAR(ANY)
matrixOut
El nombre de la matriz de salida.
Tipo NVARCHAR(ANY)
Devuelve
BOOLEAN TRUE, si tiene éxito.

Ejemplos

CALL nzm..SHAPE('-1.0', 4, 4, 'A');
CALL nzm..ABS_ELEMENTS('A', 'B');
CALL nzm..PRINT('A');
CALL nzm..PRINT('B');
CALL nzm..DELETE_MATRIX('A' );
CALL nzm..DELETE_MATRIX('B' );

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

 ABS_ELEMENTS
--------------
 t
(1 row)

                              PRINT
-----------------------------------------------------------------------------
 -- matrix: A --
-1, -1, -1, -1
-1, -1, -1, -1
-1, -1, -1, -1
-1, -1, -1, -1
(1 row)

                              PRINT
-------------------------------------------------------------
 -- matrix: B --
1,1,1,1
1,1,1,1
1,1,1,1
1,1,1,1
(1 row)

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

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