package phylogenetics
Module Iupac_nucleotide.MatrixSource
include Linear_algebra.Matrix with type t = matrix and type vec := vector
Matrix and vector creation
Initializes a square diagonal matrix from the vector of its diagonal elements.
Compares two matrices and tolerates a certain relative difference. Let f be the float parameter, it returns true iff the elements of the second matrix are between 1-f and 1+f times the corresponding elements of the first
Diagonalizes a matrix M so that M = PxDxP^T; returns (v,P) where v is the diagonal vector of D.
zero_eigen_vector m is a vector v such that Vec.sum v = 1 and mat_vec_mul m v = zero
Prints a matrix to the standard output (display may be messy).