gram-schmidt-normalize ( matrix -- orthonormal )
Extra matrix operations

Prev:gram-schmidt ( matrix -- orthogonal )
Next:kronecker-product ( m1 m2 -- m )


Vocabulary
math.matrices.extras

Inputs
matrixa matrix


Outputs
orthonormala matrix


Word description
Apply a Gram-Schmidt transform on the matrix, and normalize each row of the result, resulting in an orthogonal and normalized matrix (orthonormal).

Examples
USING: math.matrices.extras prettyprint ; { { 1 2 } { 3 4 } { 5 6 } } gram-schmidt-normalize .
{ { 0.4472135954999579 0.8944271909999159 } { 0.894427190999916 -0.447213595499958 } { -0/0. -0/0. } }


Definition