This procedure generates formatted print of a matrix.
Usage
The PRINT stored procedure has the following syntax:
- PRINT(matrixIn,r_style)
- Parameters
- matrixIn
- The name of the input matrix.
- r_style
- A Boolean TRUE/FALSE value.
Examples
CALL nzm..CREATE_IDENTITY_MATRIX('A',4);
CALL nzm..PRINT('A', false);
CALL nzm..DELETE_MATRIX('A');
CREATE_IDENTITY_MATRIX
------------------------
t
(1 row)
PRINT
-------------------------------------------------------------
-- matrix: A --
1, 0, 0, 0
0, 1, 0, 0
0, 0, 1, 0
0, 0, 0, 1
(1 row)
DELETE_MATRIX
---------------
t
(1 row)
CALL nzm..CREATE_IDENTITY_MATRIX('A',4);
CALL nzm..PRINT('A',true);
CALL nzm..DELETE_MATRIX('A');
CREATE_IDENTITY_MATRIX
------------------------
t
(1 row)
PRINT
--------------------------------------------------------------------
-- matrix: A --
A<-matrix(c(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),4,4)
(1 row)
DELETE_MATRIX
---------------
t
(1 row)