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