spDiag: Create sparse diagonal matrix with vector x on diagonal

View source: R/matrix_helpers.R

spDiagR Documentation

Create sparse diagonal matrix with vector x on diagonal

Description

Create sparse diagonal matrix with vector x on diagonal

Usage

spDiag(v)

Arguments

v

Vector to use as the diagonal of the matrix


be-green/quantspace documentation built on March 20, 2024, 5:30 p.m.