MOD_ELEMENTS - elementwise MOD function
This function implements the elementwise modulo operation for the specified block of elements.
Usage
The MOD_ELEMENTS stored procedure has the following syntax:
- MOD_ELEMENTS(matrixIn,matrixOut,divisor,row_start,col_start,row_stop,col_stop)
- Parameters
- matrixIn
- The name of the input matrix.
- matrixOut
- The name of the output matrix.
- divisor
- The divisor.
- row_start
- The first row of the input matrix to use.
- col_start
- The first column of the input matrix to use.
- row_stop
- The last row of the input matrix to use.
- col_stop
- The last column of the input matrix to use.
Examples
CALL nzm..SHAPE('1,2,3,4,5,6,7,8,9',3,3,'A');
CALL nzm..MOD_ELEMENTS('A','B',3,2,2,2,2);
CALL nzm..PRINT('B');
CALL nzm..DELETE_MATRIX('A');
CALL nzm..DELETE_MATRIX('B');
SHAPE
-------
t
(1 row)
MOD_ELEMENTS
--------------
t
(1 row)
PRINT
-----------------------------------------
-- matrix: B --
1, 2, 3
4, 2, 6
7, 8, 9
(1 row)
DELETE_MATRIX
---------------
t
(1 row)
DELETE_MATRIX
---------------
t
(1 row)