Contents
Previous
Next
Subchapters
Current Chapters->
kron
inv
trace
det
logdet
rank
cond
null
orth
pinv
cholesky
lu
svd
qr
qred
eigen
geneig
eigsym
symeig
schur
levinson
tridiag
BlockTriDiag
Parent Chapters->
Omatrix6
linear
inv
Search Tools->
contents
reference
index
search
Inverting A Square Matrix
Syntax
inv(
x
)
See Also
\
eigen
,
svd
,
qred
Description
Returns the inverse of the matrix
x
, where x is a
square
real, double-precision, or complex matrix. The return value has the same type and dimension as
x
.
Example
x = {[2., 1.], [1., 1.]}
inv(x)
returns
{
[ 1 , -1 ]
[ -1 , 2 ]
}
Algorithm
This function first forms a
LU
factorization of the matrix
x
and then solves for the inverse.