identityMatrix: Create an Identity matrix (Deprecated)

identityMatrixR Documentation

Create an Identity matrix (Deprecated)

Description

Returns a d-by-d identity matrix (square matrix of 0's, with 1's on the main diagnol).

Usage

identityMatrix(d)

Arguments

d

The size of the identity matrix to return, will return a d-by-d matrix

Details

This function can be used in NIMBLE run code. It is deprecated because now one can use diag(d) instead.

Value

A d-by-d identity matrix

Author(s)

Daniel Turek

Examples

Id <- identityMatrix(d = 3)


nimble documentation built on July 9, 2023, 5:24 p.m.