SQRT_ELEMENTS - elementwise SQRT

This procedure implements an element wise square root calculation for the specified block of elements.

Usage

The SQRT_ELEMENTS stored procedure has the following syntax:
SQRT_ELEMENTS(matrixIn,matrixOut,row_start,col_start,row_stop,col_stop)
Parameters
matrixIn
The name of the input matrix.
Type: NVARCHAR(ANY)
matrixOut
The name of the output matrix.
Type: NVARCHAR(ANY)
row_start
The first row of the input matrix to use.
Type: INT4
col_start
The first column of the input matrix to use.
Type: INT4
row_stop
The last row of the input matrix to use.
Type: INT4
col_stop
The last column of the input matrix to use.
Type: INT4
Returns
BOOLEAN TRUE, if successful.

Examples

CALL nzm..shape('2,9,49,64,81',3,3,'A');
CALL nzm..SQRT_ELEMENTS('A', 'B', 2, 2, 3, 3);
CALL nzm..print('B');
CALL nzm..delete_matrix('A');
CALL nzm..delete_matrix('B');

 SHAPE
-------
 t
(1 row)

 SQRT_ELEMENTS
---------------
 t
(1 row)

                        PRINT
---------------------------------------------------------
 -- matrix: B --
 2, 9, 49
 64, 9, 1.4142135623731
 9, 7, 8
(1 row)

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

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