fill_upper_tri: fill the upper triangle of a (d x d) matrix with the vector v

View source: R/tri-matrix.R

fill_upper_triR Documentation

fill the upper triangle of a (d x d) matrix with the vector v

Description

fill the upper triangle of a (d x d) matrix with the vector v

Usage

fill_upper_tri(v, d)

Arguments

v

vector with choose(d,2) elements to fill upper triangle

d

dimensionality of (dxd) matrix output

Value

a (dxd) upper triangluar matrix filled with v


jlivsey/livsey documentation built on Oct. 17, 2024, 3:18 a.m.