SIGN_REVERSE - elementwise sign reversal (entire matrix operation)
This procedure implements a sign reversal on the specified block of elements.
Usage
The SIGN_REVERSE stored procedure has the following syntax:
- SIGN_REVERSE(matrixIn,matrixOut)
- Parameters
- matrixIn
- The name of the input matrix.
- matrixOut
- The name of the output matrix.
Examples
call nzm..shape('1,2,3,4,5,0,6,7,8,9',4,4,'A');
call nzm..sign_reverse('A','B');
call nzm..print('A');
call nzm..print('B');
call nzm..delete_matrix('A');
call nzm..delete_matrix('B');
SHAPE
-------
t
(1 row)
SIGN_REVERSE
--------------
t
(1 row)
PRINT
-------------------------------------------------------------
-- matrix: A --
1, 2, 3, 4
5, 0, 6, 7
8, 9, 1, 2
3, 4, 5, 0
(1 row)
PRINT
-------------------------------------------------------------
-- matrix: B --
1, -2, -3, -4
-5, -0, -6, -7
-8, -9, -1, -2
-3, -4, -5, -0
(1 row)
DELETE_MATRIX
---------------
t
(1 row)
DELETE_MATRIX
---------------
t
(1 row)