The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Math::MatrixDecomposition::Util - utility functions

SYNOPSIS

    use Math::MatrixDecomposition::Util qw(:all);

DESCRIPTION

This module contains a colorful collection of utility functions. Nothing is exported by default.

Utility Functions

eps

Return the machine precision.

isnan (x)

Return true if x is not-a-number.

mod (num, den)

Return the remainder of a division. Any argument can be either an integral number or a floating-point number.

min (a, b)

Return the minimum value of the two arguments.

max (a, b)

Return the maximum value of the two arguments.

sign (a, b)

Return the value of a with the sign of b.

If the second argument b is less than zero, the return value is a non-positive number. Otherwise, the return value is a non-negative number.

hypot (a, b)

Return the length of the hypotenuse of a right triangle. This is equal to the distance of a point to the origin in a two-dimensional Cartesian coordinate system.

cdiv (a_re, a_im, b_re, b_im)

Return the real part and imaginary part of the division of two complex numbers.

AUTHOR

Ralph Schleicher <ralph@cpan.org>