POWER_ELEMENTS - elementwise POWER function (entire matrix operation)

This procedure implements an elementwise raising of elements to a power.

Usage

The POWER_ELEMENTS stored procedure has the following syntax:
POWER_ELEMENTS(matrixIn,matrixOut,power)
Parameters
matrixIn
The name of the input matrix.
Type: NVARCHAR(ANY)
matrixOut
The name of the output matrix.
Type: NVARCHAR(ANY)
power
The power to use.
Type: DOUBLE
Returns
BOOLEAN TRUE, if successful.

Examples

CALL nzm..shape('1,2,3,4,5,0,6,7,8',3,3,'A');
CALL nzm..power_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)

 POWER_ELEMENTS
----------------
 t
(1 row)

                 PRINT
-----------------------------------------
 -- matrix: A --
 1, 2, 3
 4, 5, 0
 6, 7, 8
(1 row)

                      PRINT
---------------------------------------------------
 -- matrix: B --
 1, 8, 27
 64, 125, 0
 216, 343, 512
(1 row)

 DELETE_MATRIX
---------------
 t
(1 row)

 DELETE_MATRIX
---------------
 t
(1 row)