COPY_SUBMATRIX - Kopieren eines rechteckigen Blocks einer Matrix
Diese Prozedur erstellt eine Matrix aus dem angegebenen rechteckigen Block der Eingabematrix. Dies ist ein Wrapper für die gespeicherte Prozedur BLOCK.
Verwendung
Die gespeicherte Prozedur COPY_SUBMATRIX hat die folgende Syntax:
- COPY_SUBMATRIX matrixIn,matrixOut,row_start,col_start,row_stop,col_stop )
- Parameter
Beispiele
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..copy_submatrix('A', 'B', 2, 3, 1, 4);
CALL nzm..print('A');
CALL nzm..print('B');
CALL nzm..DELETE_MATRIX('A' );
CALL nzm..DELETE_MATRIX('B' );
SHAPE
-------
t
(1 row)
COPY_SUBMATRIX
----------------
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 --
4, 5, 6, 7
8, 9, 10, 11
(1 row)
DELETE_MATRIX
---------------
t
(1 row)
DELETE_MATRIX
---------------
t
(1 row)