Forms a unit matrix

Share:

Description

Form the unit or identity matrix of order order.

Usage

1

Arguments

order

The order of the matrix to be formed.

Value

A square matrix whose diagonal elements are one and its off-diagonal are zero.

See Also

mat.J, mat.ar1

Examples

1
    col.I <- mat.I(order=4)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.