vec2mat: Vector-To-Tensor Representation

Description Usage Arguments Value Examples

Description

Vector-To-Tensor Representation

Usage

1
vec2mat(vector, twice = FALSE)

Arguments

vector

A vector of size 6 storing the 6 unique components of a tensor.

twice

A boolean that says whether off-diagonal tensor elements were doubled in vector representation (default: FALSE).

Value

A 3x3 symmetric postive definite matrix as output tensor.

Examples

1
2
v <- seq_len(6L)
vec2mat(v)

astamm/bayesr documentation built on May 10, 2019, 2:05 p.m.