SUBTRACT

This procedure computes C = A - B, where A, B, and C are matrices.

Usage

The SUBTRACT stored procedure has the following syntax:
SUBTRACT(matrixA,matrixB,matrixC)
Parameters
matrixA
The name of input matrix A.
Type: NVARCHAR(ANY)
matrixB
The name of input matrix B.
Type: NVARCHAR(ANY)
matrixC
The name of output matrix C.
Type: NVARCHAR(ANY)
Returns
BOOLEAN TRUE always.

Examples

call nzm..shape('1,2,3,4,5,6,7,8,9,0',3,3,'A'); 
call nzm..shape('0,9,8,7,6,5,4,3,2,1',3,3,'B'); 
call nzm..subtract('A','B','C'); 
call nzm..print('C');
call nzm..delete_matrix('A');
call nzm..delete_matrix('B');
call nzm..delete_matrix('C');

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

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

 SUBTRACT
----------
 t
(1 row)

                   PRINT
---------------------------------------------
-- matrix: C -- 
 1, -7, -5
 -3, -1, 1
 3, 5, 7
(1 row)

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

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

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