# InvMatrix

AnalysisLibErrType InvMatrix (void *inputMatrix, int matrixSize, void *outputMatrix);

## Purpose

Finds the inverse matrix of a square matrix. InvMatrix can perform the operation in place; that is, the input and output matrices can be the same.

If the matrix is singular, InvMatrix returns an error code and does not invert the matrix.

## Parameters

Input
Name | Type | Description
inputMatrix | numeric array | The square matrix to invert. This matrix must be an array of doubles.
matrixSize | integer | Number of rows and columns of the input matrix.
Output
Name | Type | Description
outputMatrix | numeric array | Inverse matrix, as an array of doubles.

## Return Value

Name | Type | Description
status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants.