PHP 7.4.0 alpha 3 Released


(PECL lapack >= 0.1.0)

Lapack::identityReturn an identity matrix


public static Lapack::identity ( int $n ) : array

Return a size n identity matrix



The height and width of the identity matrix.

Return Values

Will return a an array of n arrays, each containing n entries. The diagonals of the matrix will be 1s, the other positions 0.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top