| Library: | multi |
| See also: | diag xdiag matrix unit zeros |
| Quantlet: | eye | |
| Description: | creating a d-dimensional identity matrix |
| Usage: | x = eye(d) | |
| Input: | ||
| d | integer, dimension of matrix | |
| Output: | ||
| x | d x d unit matrix | |
library("multi")
eye(3)
Contents of x [1,] 1 0 0 [2,] 0 1 0 [3,] 0 0 1
| Library: | multi |
| See also: | diag xdiag matrix unit zeros |