commands → identity

identity(N)

The identity command constructs the N x N identity matrix.

Examples

identity(2);
	[[1, 0], [0, 1]]