Lapack::identity

(PECL lapack >= 0.1.0)

Lapack::identityReturn an identity matrix

Beschreibung

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

Return a size n identity matrix

Parameter-Liste

n

The height and width of the identity matrix.

Rückgabewerte

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