Documentation
Matrix operations

 Parents: math Tags: math Authors: Slava Pestov, Joe Groff, Doug Coleman, Cat Stevens

Words

Predicate classes
 Class Superclass irregular-matrix sequence matrix sequence null-matrix matrix square-matrix matrix zero-matrix matrix zero-square-matrix square-matrix

Generic words
 Word Stack effect ( desc -- matrix ) ( desc -- matrix ) cols-except ( matrix desc -- others ) rows-except ( matrix desc -- others )

Ordinary words
 Word Stack effect ( diagonal-seq -- matrix ) ( dim -- coordinates ) ( n -- matrix ) ( dim -- coordinates ) ( diagonal-seq -- matrix ) ( m n k z -- matrix ) ( n -- matrix ) ( object m n -- matrix ) ( ... m n quot: ( ... m' n' -- ... elt ) -- ... matrix ) ( m n quot: ( ... -- elt ) -- matrix ) ( m n element -- matrix ) ( m n k -- matrix ) ( object m n -- matrix ) ( m n -- matrix ) ( n -- matrix ) >square-matrix ( m -- subset ) all-submatrices ( matrix -- submatrices ) anti-diagonal ( matrix -- seq ) anti-flip ( matrix -- newmatrix ) anti-transpose ( matrix -- newmatrix ) col ( n matrix -- col ) cols ( seq matrix -- cols ) column-map ( matrix quot: ( ... col -- ... col' ) -- matrix' ) dimension ( matrix -- dimension ) frobenius-norm ( m -- n ) hilbert-schmidt-norm ( m -- n ) m* ( m1 m2 -- m ) m*n ( m n -- m ) m+ ( m1 m2 -- m ) m+n ( m n -- m ) m- ( m1 m2 -- m ) m-n ( m n -- m ) m/ ( m1 m2 -- m ) m/n ( m n -- m ) mabs ( m -- m' ) main-diagonal ( matrix -- seq ) matrix-except ( matrix exclude-pair -- submatrix ) matrix-except-all ( matrix -- submatrices ) matrix-l-infinity-norm ( m -- n ) matrix-l1-norm ( m -- n ) matrix-l2-norm ( m -- n ) matrix-map ( matrix quot: ( ... elt -- ... elt' ) -- matrix' ) matrix-map-index ( matrix quot: ( ... elt i j -- ... elt' ) -- matrix' ) matrix-normalize ( m -- m' ) matrix-nth ( pair matrix -- elt ) matrix-nths ( pairs matrix -- elts ) matrix-p-norm ( m p -- n ) matrix-p-norm-entrywise ( m p -- n ) matrix-p-q-norm ( m p q -- n ) matrix-set-nth ( obj pair matrix -- ) matrix-set-nths ( obj pairs matrix -- ) mdot ( m m -- m ) mdotv ( m v -- p ) mmax ( m -- n ) mmin ( m -- n ) mneg ( m -- m' ) m~ ( m1 m2 epsilon -- ? ) n*m ( n m -- m ) n+m ( n m -- m ) n-m ( n m -- m ) n/m ( n m -- m ) regular-matrix? ( object -- ? ) row ( n matrix -- row ) rows ( seq matrix -- rows ) stitch ( m -- m' ) submatrix-excluding ( matrix exclude-pair -- submatrix ) transpose ( matrix -- newmatrix ) vdotm ( v m -- p )

Class predicate words
 Word Stack effect irregular-matrix? ( object -- ? ) matrix? ( object -- ? ) null-matrix? ( object -- ? ) square-matrix? ( object -- ? ) zero-matrix? ( object -- ? ) zero-square-matrix? ( object -- ? )

Files