pub fn py_matrix<T>(v: Vec<Vec<T>>) -> Matrix
where
    T: Into<f64> + Copy,
{
    let r = v.len();
    let c = v[0].len();
    let mut data = vec![0f64; r * c];
    for i in 0..r {
        for j in 0..c {
            let idx = i * c + j;
            data[idx] = v[i][j].into();
        }
    }
    matrix(data, r, c, Row)
}
Python-like matrix constructor

# Examples
```
#[macro_use]
extern crate peroxide;
use peroxide::fuga::*;

fn main() {
let a = py_matrix(vec![c!(1,2), c!(3,4)]);
let b = matrix(c!(1,2,3,4), 2, 2, Row);
assert_eq!(a, b);
}
```
src/structure/matrix.rs