Math::MatrixReal



Math::MatrixReal  Matrix of RealsImplements the data type "matrix of reals" (and consequently also "vector of reals") which can be used almost like any other basic Perl type thanks to OPERATOR OVERLOADING, i.e.,
$product = $matrix1 * $matrix2; does what you would like it to do (a matrix multiplication). Also features many important operations and methods: matrix norm, matrix transposition, matrix inverse, determinant of a matrix, order and numerical condition of a matrix, scalar product of vectors, vector product of vectors, vector length, projection of row and column vectors, a comfortable way for reading in a matrix from a file, the keyboard or your code, and many more. Allows to solve linear equation systems using an efficient algorithm known as "LR decomposition" and several approximative (iterative) methods. Features an implementation of Kleene's algorithm to compute the minimal costs for all paths in a graph with weighted edges (the "weights" being the costs associated with each edge).


Copyright © 1997  2016 by Steffen Beyer
