RADIANS_ELEMENTS - elementwise RADIANS function (entire matrix operation)
This procedure implements an elementwise degrees to radians conversion.
Usage
The RADIANS_ELEMENTS stored procedure has the following syntax:
- RADIANS_ELEMENTS(matrixIn,matrixOut,row_start,col_start,row_stop,col_stop)
- Parameters
- matrixIn
- The name of the input matrix.
- matrixOut
- The name of the output matrix.
Examples
CALL nzm..shape('0,45,90,180,270,360',4,4,'A');
CALL nzm..radians_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)
RADIANS_ELEMENTS
------------------
t
(1 row)
PRINT
---------------------------------------------------------------------------------
-- matrix: A --
0, 45, 90, 180
270, 360, 0, 45
90, 180, 270, 360
0, 45, 90, 180
(1 row)
PRINT
---------------------------------------------------------------------------------
-- matrix: B --
0, 0.78539816339745, 1.5707963267949, 3.1415926535898
4.7123889803847, 6.2831853071796, 0, 0.78539816339745
1.5707963267949, 3.1415926535898, 4.7123889803847, 6.2831853071796
0, 0.78539816339745, 1.5707963267949, 3.1415926535898
(1 row)
DELETE_MATRIX
---------------
t
(1row)
DELETE_MATRIX
---------------
t
(1 row)