Handbook
Glossary
invertible-matrix? ( matrix -- ? )
Extra matrix operations
Prev:
<random-unit-matrix> ( m n max -- matrix )
Next:
linearly-independent-matrix? ( matrix -- ? )
Vocabulary
math
.
matrices
.
extras
Inputs
matrix
a
matrix
Outputs
?
a
boolean
Word description
Tests whether the input matrix has a
multiplicative-inverse
. In order for a matrix to be invertible, it must be a
square-matrix
,
or
, if it is non-square, it must not be of
+deficient-rank+
.
Examples
USING: math.matrices.extras prettyprint ;
Definition
USING:
kernel
math
math.matrices
math.order
sequences
;
IN:
math.matrices.extras
:
invertible-matrix?
( matrix -- ? )
[
dimension
first2
max
<identity-matrix>
]
keep
dup
recip
mdot
=
;