pub fn r_matrix<T>(v: Vec<T>, r: usize, c: usize, shape: Shape) -> Matrixwhere T: Into<f64>,
R-like matrix constructor (Explicit ver.)