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/ANTs documentation built on Sept. 25, 2023, 11:06 p.m.