Enum ha_ndarray::Array
source · pub enum Array<T: CDatatype> {
Base(ArrayBase<Box<dyn BufferRead<DType = T>>>),
Op(ArrayOp<Arc<dyn Op<Out = T>>>),
Slice(Box<ArraySlice<Self>>),
View(Box<ArrayView<Self>>),
}
Variants§
Base(ArrayBase<Box<dyn BufferRead<DType = T>>>)
Op(ArrayOp<Arc<dyn Op<Out = T>>>)
Slice(Box<ArraySlice<Self>>)
View(Box<ArrayView<Self>>)
Trait Implementations§
source§impl<T: CDatatype, A: Into<Array<T>>> From<ArraySlice<A>> for Array<T>
impl<T: CDatatype, A: Into<Array<T>>> From<ArraySlice<A>> for Array<T>
source§fn from(slice: ArraySlice<A>) -> Self
fn from(slice: ArraySlice<A>) -> Self
Converts to this type from the input type.
source§impl<T: CDatatype> NDArrayRead for Array<T>
impl<T: CDatatype> NDArrayRead for Array<T>
source§impl<T: CDatatype> NDArrayTransform for Array<T>
impl<T: CDatatype> NDArrayTransform for Array<T>
type Broadcast = Array<T>
type Expand = Array<T>
type Reshape = Array<T>
type Slice = Array<T>
type Transpose = Array<T>
fn broadcast(self, shape: Shape) -> Result<Self, Error>
fn expand_dims(self, axes: Vec<usize>) -> Result<Self, Error>
fn reshape(self, shape: Shape) -> Result<Self, Error>
fn slice(self, bounds: Vec<AxisBound>) -> Result<Self, Error>
fn transpose(self, axes: Option<Vec<usize>>) -> Result<Self, Error>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Array<T>
impl<T> Send for Array<T>
impl<T> Sync for Array<T>
impl<T> Unpin for Array<T>
impl<T> !UnwindSafe for Array<T>
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