Description Usage Arguments Author(s)
This function takes a vector and reformats it to a matrix in a column-wise fashion. Since Armadillo "builds" the matrix column-wise, some code tricks are employed to automagically deliever the expected result.
1 | vecToMat(vec, nr, nc)
|
vec |
Numeric; the vector to reformat. |
nr |
integer; length 1 integer indicating the number of matrix rows. |
nc |
integer; length 1 integer indicating the number of matrix columns. |
Jason T. Serviss
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.