pub fn vec_to_col_vec<F: Clone>(vec: &Vec<F>) -> Matrix<F> {

    let mut mat = Vec::with_capacity(vec.len());
    for elem in vec.iter() {
        mat.push(vec![elem.clone()]);
    }
    mat
}
/// Expand vector into column vector (in matrix form).
Expand vector into column vector (in matrix form).
Expand vector into column vector ( in matrix form ) .
pub fn vec_to_col_vec<F: Clone>(vec: &Vec<F>) -> Matrix<F> {
    let mut mat = Vec::with_capacity(vec.len());
    for elem in vec.iter() {
        mat.push(vec![elem.clone()]);
    }
    mat
}
pub fn vec_to_col_vec < F : Clone > ( vec : & Vec < F > ) -> Matrix < F > { let mut mat = Vec :: with_capacity ( vec . len ( ) ) ; for elem in vec . iter ( ) { mat . push ( vec ! [ elem clone ( ) ] ) ; } mat }
Expand vector into column vector (in matrix form).
Expand vector into column vector ( in matrix form ) .
vec
&Vec<F>
vec
&Vec<F>