- PHP 手册
- 函数参考
- 数学扩展
- Lapack
- Lapack
Lapack::identity
(PECL lapack >= 0.1.0)
Lapack::identity — Return an identity matrix
说明
public static Lapack::identity ( int$n
) : array
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.
User Contributed Notes
There are no user contributed notes for this page.官方地址:https://www.php.net/manual/en/lapack.identity.php