Function jamml::initializers::column_mat

source ·
pub fn column_mat<T: NumAssign + Copy>(v: &Vec<T>) -> Mat<T>
Expand description

Creates a matrix for a column vector from &Vec v

Essensialt we take each element in the input vector and put it into its own vector, before stringing them together.

             [[a]
[a, b, c] ->  [b]
              [c]]