SCALE - Skalierung der Elemente einer Matrix
Bei diesem Verfahren wird C = A f berechnet, wobei A und C Matrizen sind und f eine reelle Zahl ist.
Verwendung
Die gespeicherte Prozedur SCALE hat die folgende Syntax:
- SCALE matrixA,factor,matrixC )
- Parameter
- matrixA
- Der Name der Eingabematrix A.
- Faktor
- Der Multiplikationsfaktor.
- matrixC
- Der Name der Matrix C.
Beispiele
call nzm..shape('1,2,3,4,5,0,6,7,8',3,3,'A');
call nzm..scale('A','5','B');
call nzm..print('A');
call nzm..print('B');
call nzm..delete_matrix('A');
call nzm..delete_matrix('B');
SHAPE
-------
t
(1 row)
SCALE
-------
t
(1 row)
PRINT
-----------------------------------------
-- matrix: A --
1, 2, 3
4, 5, 0
6, 7, 8
(1 row)
PRINT
------------------------------------------------
-- matrix: B --
5, 10, 15
20, 25, 0
30, 35, 40
(1 row)
DELETE_MATRIX
---------------
t
(1 row)
DELETE_MATRIX
---------------
t
(1 row)