calcul.io
math playground
New
calculation
Help
Instructions
Examples
Functions
Constants
Display Debug info
Functions
Matrix
identity
identity
identity(n)
identity(m, n)
identity([m, n])
Try it yourself:
$1
identity(3)
$2
identity(3, 5)
$3
a = [1, 2, 3; 4, 5, 6]
$4
identity(size(a))
See also:
concat
det
diag
inv
ones
range
size
squeeze
subset
trace
transpose
zeros
All functions