SOLVE

This procedure solves the equation A X = B for X, where A, B, and X are matrices.

Usage

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

Details

This procedure assumes that matrix A has full rank.

Examples

CALL nzm..shape('1,2,3,4,5,0,6,7,8',3,3,'A');
CALL nzm..shape('10,500,10,-900',3,3,'B');
CALL nzm..solve('A','B','X');
CALL nzm..gemm('A','X','B1');
CALL nzm..subtract('B','B1','B0');
CALL nzm..print('B0');
CALL nzm..delete_matrix('A');
CALL nzm..delete_matrix('B');
CALL nzm..delete_matrix('B0');
CALL nzm..delete_matrix('B1');
CALL nzm..delete_matrix('X');

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

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

 SOLVE
-------
 t
(1 row)

 GEMM
------
 t
(1 row)

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

                                             PRINT
--------------------------------------------------------------------------------------------------
 -- matrix: B0 --
 -1.1368683772162e-13, 2.2737367544323e-13, 2.8421709430404e-14
 -2.2737367544323e-13, 9.0949470177293e-13, 1.7053025658242e-13
 0, 0, 0
(1 row)

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

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

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

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

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