Trait rest_tensors::matrix::BasicMatrix
source · [−]pub trait BasicMatrix<'a, T> {
fn size(&self) -> &[usize];
fn indicing(&self) -> &[usize];
fn data_ref(&self) -> Option<&[T]>;
fn data_ref_mut(&mut self) -> Option<&mut [T]>;
fn is_matr(&self) -> bool { ... }
fn is_contiguous(&self) -> bool { ... }
}
Required Methods
fn size(&self) -> &[usize]
fn indicing(&self) -> &[usize]
fn data_ref(&self) -> Option<&[T]>
fn data_ref_mut(&mut self) -> Option<&mut [T]>
Provided Methods
fn is_matr(&self) -> bool
sourcefn is_contiguous(&self) -> bool
fn is_contiguous(&self) -> bool
by default, the matrix should be contiguous, unless specify explicitly.