StridedArray

Trait StridedArray 

Source
pub trait StridedArray: ArrayProtocol {
    // Required methods
    fn strides(&self) -> Vec<usize>;
    fn is_contiguous(&self) -> bool;
    fn is_fortran_contiguous(&self) -> bool;
}
Expand description

Trait for arrays that support strided access.

Required Methods§

Source

fn strides(&self) -> Vec<usize>

Get the strides of this array.

Source

fn is_contiguous(&self) -> bool

Check if this array is contiguous.

Source

fn is_fortran_contiguous(&self) -> bool

Check if this array is Fortran-contiguous (column-major).

Implementors§