Handbook
Glossary
gram-schmidt ( matrix -- orthogonal )
Extra matrix operations
Prev:
linearly-independent-matrix? ( matrix -- ? )
Next:
gram-schmidt-normalize ( matrix -- orthonormal )
Vocabulary
math
.
matrices
.
extras
Inputs
matrix
a
matrix
Outputs
orthogonal
a
matrix
Word description
Apply a Gram-Schmidt transform on the matrix.
Examples
USING: math.matrices.extras prettyprint ; { { 1 2 } { 3 4 } { 5 6 } } gram-schmidt .
{ { 1 2 } { 4/5 -2/5 } { 0 0 } }
Definition
USING:
kernel
math.matrices.extras.private
sequences
;
IN:
math.matrices.extras
:
gram-schmidt
( matrix -- orthogonal )
[
V{
}
clone
[
over
(gram-schmidt)
suffix!
]
reduce
]
keep
like
;