GoLang Lapack::identity

request it (225)
GoLang replacement for PHP's Lapack::identity [edit | history]

Do you know a GoLang replacement for PHP's Lapack::identity? Write it!

PHP Lapack::identity

PHP original manual for Lapack::identity [ show | php.net ]


(PECL lapack >= 0.1.0)

Lapack::identityReturn an identity matrix


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

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.