Lapack
在线手册:中文  英文

Lapack::identity

(PECL lapack >= 0.1.0)

Lapack::identityReturn an identity matrix

说明

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

Return a size n identity matrix

参数

n

The height and width of the identity matrix.

返回值

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
在线手册:中文  英文
易百教程