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.


ANTs documentation built on July 3, 2022, 1:05 a.m.

Related to vec_to_mat in ANTs...