fn rvalue_to_array2(val: &RValue) -> Result<Array2<f64>, RError>
Convert an RValue to an ndarray Array2 (column-major)