Module conversions

Module conversions 

Source
Expand description

Conversion utilities between ndarray and OxiBLAS types.

This module provides zero-copy and copying conversions between ndarray’s Array2, ArrayView2, ArrayViewMut2 and OxiBLAS’s Mat, MatRef, MatMut types.

Functions§

array1_to_vec
Converts an ndarray Array1 to a Vec.
array2_into_mat
Converts an ndarray Array2 to an OxiBLAS Mat, consuming the array.
array2_to_arrayd
Converts an Array2 to an ArrayD.
array2_to_mat
Converts an ndarray Array2 to an OxiBLAS Mat.
array_view1_as_slice
Gets a slice from an ArrayView1 if contiguous.
array_view1_as_slice_mut
Gets a mutable slice from an ArrayViewMut1 if contiguous.
array_view_mut_to_mat_mut
Creates a MatMut view from an ndarray ArrayViewMut2.
array_view_mutd_to_mat_mut
Creates a MatMut view from an ndarray ArrayViewMutD.
array_view_to_mat_ref
Creates a MatRef view from an ndarray ArrayView2.
array_view_to_mat_ref_or_transposed
Creates a MatRef view from an ndarray ArrayView2, handling row-major layout by returning a transposed view if needed.
array_viewd_to_mat_ref
Creates a MatRef view from an ndarray ArrayViewD.
array_viewd_to_mat_ref_or_transposed
Creates a MatRef view from an ndarray ArrayViewD, handling row-major layout.
arrayd_into_mat
Converts an ndarray ArrayD to an OxiBLAS Mat, consuming the array.
arrayd_to_array2
Converts an ArrayD to an Array2.
arrayd_to_mat
Converts an ndarray ArrayD (dynamic dimension) to an OxiBLAS Mat.
filled_f
Creates a column-major Array2 filled with a value.
is_column_major
Checks if an Array2 is in column-major (Fortran) order.
is_row_major
Checks if an Array2 is in row-major (C) order.
mat_ref_to_array2
Converts an OxiBLAS MatRef to an ndarray Array2.
mat_ref_to_arrayd
Converts an OxiBLAS MatRef to an ndarray ArrayD.
mat_to_array2
Converts an OxiBLAS Mat to an ndarray Array2.
mat_to_array2_c
Converts an OxiBLAS Mat to a row-major ndarray Array2.
mat_to_arrayd
Converts an OxiBLAS Mat to an ndarray ArrayD.
slice_to_array1
Converts a slice to an ndarray Array1.
to_column_major
Converts a row-major Array2 to column-major.
zeros_f
Creates a column-major Array2 (Fortran order).