eye: Identity matrix

Description Usage Arguments Details Value Examples

View source: R/eye.R

Description

Define identity matrix

Usage

1
eye(n)

Arguments

n

size of matrix

Details

Defines identity matrix of dimensions n x n. Reproduces functionality of identically named MATLAB function.

Value

m an n x n identity matrix

Examples

1
eye(5)

markallenthornton/dimest documentation built on June 17, 2018, 12:44 a.m.