minvert

From DavinciWiki
Jump to: navigation, search


Description

Invert a square matrix

Arguments and Return Values

Arguments: A square 2-d numeric array

Return Value: The inverted matrix

Usage

Syntax: minvert(object = VAL)

The minvert() function inverts a square matrix using LU decomposition. The matrix must be square in the X and Y dimensions and the size of the Z dimension must be 1.

The results from minvert() are always of type DOUBLE.

Examples

dv> a
3x3x1 array of float, bsq format [36 bytes]
0.558329        0.100168        0.899324
0.805147        0.930234        0.535199
0.938504        0.0242239       0.597536

dv> b = minvert(a)
3x3x1 array of double, bsq format [72 bytes]
-1.17414        0.0823348       1.69340
-0.0458126      1.10388         -0.919771
1.84600         -0.174068       -0.948874


DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 03-27-2006

Personal tools