The Complete SPRLIB & ANNLIB

matinvd

- invert a matrix A into matrix B and return the determinant

SYNOPSIS

int matinvd (A, n, B, det)

ARGUMENTS

double **A Input matrix.
int n Dimension of A; see FUNCTION below.
double **B Output (result) matrix.
double *det A pointer to the storage space for the determinant.

RETURNS

TRUE if an error was detected, FALSE if no error was detected.

FUNCTION

See above. Matrix A and B must have the following format: A[1..n][1..n], B[1..n][1..n]. The function is identical to matinv, but also returns the determinant of the inverted matrix, B, through det. In mathematical form: B = A^-1.

NOTE

A core dump will probably result if the requirements are violated!

SEE ALSO

mattransp, vecinmult, matvecmult, matmult, matcopy, matinv

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998