vec_to_mat: Vector to matrix

View source: R/RcppExports.R

vec_to_matR Documentation

Vector to matrix

Description

Create a matrix from a vector

Usage

vec_to_mat(vec, ncol, diag)

Arguments

vec

a numeric vector

diag

a boolean indicating with the argument vec have the diagonal information in it.

n

number of columns of the matrix to create

Value

A square matrix

Author(s)

Sebastian Sosa.


SebastianSosa/ant documentation built on Sept. 23, 2023, 7:06 a.m.