band_matrix: Band matrix

Description Usage Arguments Examples

View source: R/optim_special_matrix.R

Description

Band matrix

Usage

1
band_matrix(nr, nc, x = 1)

Arguments

nr

integer; row dimension.

nc

integer; column dimension.

x

A scalar or a vector to be placed on the diagonal of the matrix.

Examples

1
2
3
band_matrix(2, 3)
band_matrix(2, 3, c(999))
band_matrix(2, 3, c(999, 111))

ADtools documentation built on Nov. 9, 2020, 5:09 p.m.