ABS_ELEMENTS - elementwise ABS
This procedure implements the element wise absolute value calculation for the specified block of elements.
Usage
The ABS_ELEMENTS stored procedure has the following syntax:
- ABS_ELEMENTS('matrixIn','matrixOut',row_start,col_start,row_stop,col_stop)
- Parameters
Examples
CALL nzm..SHAPE('-1.0', 4, 4, 'A');
CALL nzm..ABS_ELEMENTS('A', 'B', 2, 2, 3, 3);
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)