LN_ELEMENTS - elementwise LN function (entire matrix operation)
This procedure implements an elementwise natural log calculation.
Usage
The LN_ELEMENTS stored procedure has the following syntax:
- LN_ELEMENTS(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,6,7,8,9,10,11,12,13,14,15,16',4,4,'A');
CALL nzm..LN_ELEMENTS('A','B');
CALL nzm..PRINT('B');
CALL nzm..DELETE_MATRIX('A');
CALL nzm..DELETE_MATRIX('B');
SHAPE
-------
t
(1 row)
LN_ELEMENTS
-------------
t
(1 row)
PRINT
-----------------------------------------------------------------------------------------------------
-- matrix: B --
0, 0.69314718055995, 1.0986122886681, 1.3862943611199
1.6094379124341, 1.7917594692281, 1.9459101490553, 2.0794415416798
2.1972245773362, 2.302585092994, 2.3978952727984, 2.484906649788
2.5649493574615, 2.6390573296153, 2.7080502011022, 2.7725887222398
(1 row)
DELETE_MATRIX
---------------
t
(1 row)
DELETE_MATRIX
---------------
t
(1 row)