Lapack::pseudoInverse

(PECL lapack >= 0.1.0) Calculate the inverse of a matrix public static array Lapack::pseudoInverse ( array $a ) Find the pseudoinverse of a matrix A. Parameters: a Matrix to invert Returns: Inverted matrix (array of arrays). Examples: Using Lapack::pseudoInverse() : &

Lapack::leastSquaresBySVD

(PECL lapack >= 0.1.0) Solve the linear least squares problem, using SVD public static array Lapack::leastSquaresBySVD ( array $a, array $b ) Solve the linear least squares problem, find min x in || B - Ax || Returns an array representing x. Expects arrays of arrays, and will return an array of arrays in the dimension B num cols x A num cols. Uses SVD with a divide and conquer algorithm. Parameters:

Lapack::leastSquaresByFactorisation

(PECL lapack >= 0.1.0) Calculate the linear least squares solution of a matrix using QR factorisation public static array Lapack::leastSquaresByFactorisation ( array $a, array $b ) Solve the linear least squares problem, find min x in || B - Ax || Returns an array representing x. Expects arrays of arrays, and will return an array of arrays in the dimension B num cols x A num cols. Uses QR or LQ factorisation on matrix A.

Lapack::identity

(PECL lapack >= 0.1.0) Return an identity matrix public static array Lapack::identity ( int $n ) Return a size n identity matrix Parameters: n The height and width of the identity matrix. Returns: Will return a an array of n arrays, each containing n entries. The diagonals of the matrix will be 1s, the other positions 0.

Lapack::eigenValues

(PECL lapack >= 0.1.0) This function returns the eigenvalues for a given square matrix public static array Lapack::eigenValues ( array $a [, array $left [, array $right ]] ) Calculate the eigenvalues for a square matrix, and optionally calculate the left and right eigenvectors. Parameters: a The matrix to calculate the eigenvalues for. left

gmp_xor

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Bitwise XOR GMP gmp_xor ( GMP $a, GMP $b ) Calculates bitwise exclusive OR (XOR) of two GMP numbers. Parameters: a Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a numeric string provided that it is possible to convert the latter to a number. b Either a GMP numbe

gmp_testbit

(PHP 5, PHP 7 >= 5.3.0) Tests if a bit is set bool gmp_testbit ( GMP $a, int $index ) Tests if the specified bit is set. Parameters: a Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a numeric string provided that it is possible to convert the latter to a number. index The bit to test

gmp_sub

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Subtract numbers GMP gmp_sub ( GMP $a, GMP $b ) Subtracts b from a and returns the result. Parameters: a The number being subtracted from. Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a numeric string provided that it is possible to convert the latter to a number. b

gmp_strval

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Convert GMP number to string string gmp_strval ( GMP $gmpnumber [, int $base = 10 ] ) Convert GMP number to string representation in base base. The default base is 10. Parameters: gmpnumber The GMP number that will be converted to a string. Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a nume

gmp_sqrtrem

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Square root with remainder array gmp_sqrtrem ( GMP $a ) Calculate the square root of a number, with remainder. Parameters: a The number being square rooted. Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a numeric string provided that it is possible to convert the latter to a number.