Skip to main content

array_from_row_major

Function array_from_row_major 

Source
pub fn array_from_row_major(
    values: Vec<f64>,
    rows: usize,
    cols: usize,
) -> Option<Array2<f64>>
Expand description

Wrap a row-major flat buffer of shape (rows, cols) as an Array2<f64> without permutation. The buffer is consumed (no copy when its length matches). Returns None on a length mismatch.