ROUND_ELEMENTS - elementwise ROUND function (entire matrix operation)
This procedure implements an elementwise modulo operation for the specified block of elements.
Usage
The ROUND_ELEMENTS stored procedure has the following syntax:
- ROUND_ELEMENTS(matrixIn,matrixOut,precision,row_start,col_start,row_stop,col_stop)
- Parameters
- matrixIn
- The name of the input matrix.
- matrixOut
- The name of the output matrix.
- precision
- The desired decimal precision.
Examples
CALL nzm..SHAPE('1.1111,2.222,3.3333,4.4444,5.5555,6.6666,
7.7777,8.88 88,9.9999',3,3,'A');
CALL nzm..ROUND_ELEMENTS('A','B',3);
CALL nzm..PRINT('A');
CALL nzm..PRINT('B');
CALL nzm..DELETE_MATRIX('A');
CALL nzm..DELETE_MATRIX('B');
SHAPE
-------
t
(1 row)
ROUND_ELEMENTS
----------------
t
(1 row)
PRINT
---------------------------------------------------------
-- matrix: A --
1.1111, 2.222, 3.3333
4.4444, 5.5555, 6.6666
7.7777, 8.8888, 9.9999
(1 row)
PRINT
---------------------------------------------------------
-- matrix: B --
1.111, 2.222, 3.333
4.444, 5.556, 6.667
7.778, 8.889, 10
(1 row)
DELETE_MATRIX
---------------
t
(1 row)
DELETE_MATRIX
---------------
t
(1 row)