Welcome to the L3 Harris Geospatial documentation center. Here you will find reference guides and help documents.
﻿
>  Docs Center  >  IDL Reference  >  Advanced Math and Stats  >  IMSL_INV

### IMSL_INV

IMSL_INV

The IMSL_INV function computes the inverse of a real or complex, square matrix.

This routine requires an IDL Advanced Math and Stats license. For more information, contact your sales or technical support representative.

## Example

Compute the incomplete beta function for the corresponding elements of A, B, and Z.

`RM, a, 3, 3`
`; Define the matrix to be inverted.`
`row 0: 1 3 3`
`row 1: 1 3 4`
`row 2: 1 4 4`
`ainv = IMSL_INV(a)`
` `
`; Call IMSL_INV to perform the inversion.`
`PM, a`
` `
`; Output the original matrix.`
`1.00000    3.00000    3.00000`
`1.00000    3.00000    4.00000`
`1.00000    4.00000    4.00000`
`PM, ainv`
` `
`; Output the computed inverse.`
` 4.00000   -0.00000   -3.00000`
` 0.00000   -1.00000    1.00000`
`-1.00000    1.00000    0.00000`
`PM, a # ainv`
` `
`; Check the results.`
`1.00000    0.00000    0.00000`
`0.00000    1.00000    0.00000`
`0.00000    0.00000    1.00000`

## Syntax

Result = IMSL_INV( A, [, /DOUBLE])

## Return Value

A two-dimensional matrix containing the inverse of the matrix A.

## Arguments

### A

Two-dimensional matrix containing the matrix to be inverted.

## Keywords

### DOUBLE (optional)

If present and nonzero, double precision is used.

## Errors

### Fatal Errors

MATH_SINGULAR_MATRIX: Input matrix is singular

## Version History

 6.4 Introduced

© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us