pub struct NDArray<T>{
pub ordering: Order,
/* private fields */
}Fields§
§ordering: OrderImplementations§
Source§impl<T> NDArray<T>
impl<T> NDArray<T>
pub fn seq_index(&self) -> Vec<Vec<i64>>
pub fn new(shape: &[i64]) -> Self
pub fn set(&mut self, index: &[i64], element: T) -> bool
pub fn get(&self, index: &[i64]) -> Option<&T>
pub fn get_mut(&mut self, index: &[i64]) -> Option<&mut T>
pub fn iter(&self) -> IndexSequenceIter<'_, T> ⓘ
Auto Trait Implementations§
impl<T> Freeze for NDArray<T>
impl<T> RefUnwindSafe for NDArray<T>where
T: RefUnwindSafe,
impl<T> Send for NDArray<T>where
T: Send,
impl<T> Sync for NDArray<T>where
T: Sync,
impl<T> Unpin for NDArray<T>where
T: Unpin,
impl<T> UnwindSafe for NDArray<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more