BLOCK
This procedure creates a matrix from the specified rectangular block of an input matrix.
Usage
The BLOCK stored procedure has the following syntax:
- BLOCK(matrixIn,matrixOut,row_start,col_start,row_stop,col_stop)
- Parameters
Examples
CALL nzm..SHAPE('0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16',4,4,'A');
CALL nzm..BLOCK('A', 'B', 2, 2, 3, 3);
CALL nzm..PRINT('A');
CALL nzm..PRINT('B');
CALL nzm..DELETE_MATRIX('A' );
CALL nzm..DELETE_MATRIX('B' );
SHAPE
-------
t
(1 row)
BLOCK
-------
t
(1 row)
PRINT
-------------------------------------------------------------------
-- matrix: A --
0, 1, 2, 3
4, 5, 6, 7
8, 9, 10, 11
12, 13, 14, 15
(1 row)
PRINT
----------------------------
-- matrix: B --
5, 6
9, 10
(1 row)
DELETE_MATRIX
---------------
t
(1 row)
DELETE_MATRIX
---------------
t
(1 row)