pub struct Matrix<Dtype> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<'a, Dtype: 'a> BorrowTensor<'a, Dtype> for Matrix<Dtype>
impl<'a, Dtype: 'a> BorrowTensor<'a, Dtype> for Matrix<Dtype>
type Output = MatrixView<'a, Dtype>
fn create_borrowed_tensor( shape: TensorShape, data: &'a TensorStorage<Dtype>, ) -> Self::Output
Source§impl<'a, Dtype> From<&'a Matrix<Dtype>> for EphemeralView<'a, Dtype>
impl<'a, Dtype> From<&'a Matrix<Dtype>> for EphemeralView<'a, Dtype>
Source§impl<Dtype> HasTensorData<Dtype> for Matrix<Dtype>
impl<Dtype> HasTensorData<Dtype> for Matrix<Dtype>
fn data(&self) -> &TensorStorage<Dtype>
Source§impl<Dtype> HasTensorShape for Matrix<Dtype>
impl<Dtype> HasTensorShape for Matrix<Dtype>
fn shape(&self) -> &TensorShape
Source§impl<Dtype> MatrixTrait<Dtype> for Matrix<Dtype>
impl<Dtype> MatrixTrait<Dtype> for Matrix<Dtype>
impl<Dtype: Eq> Eq for Matrix<Dtype>
impl<Dtype> StructuralPartialEq for Matrix<Dtype>
Auto Trait Implementations§
impl<Dtype> Freeze for Matrix<Dtype>
impl<Dtype> RefUnwindSafe for Matrix<Dtype>where
Dtype: RefUnwindSafe,
impl<Dtype> Send for Matrix<Dtype>where
Dtype: Send,
impl<Dtype> Sync for Matrix<Dtype>where
Dtype: Sync,
impl<Dtype> Unpin for Matrix<Dtype>where
Dtype: Unpin,
impl<Dtype> UnwindSafe for Matrix<Dtype>where
Dtype: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Dtype, T> HasTensorShapeData<Dtype> for Twhere
T: HasTensorShape + HasTensorData<Dtype>,
impl<Dtype, T> HasTensorShapeData<Dtype> for Twhere
T: HasTensorShape + HasTensorData<Dtype>,
fn coord_to_index(&self, coord: &[Unitless]) -> Unitless
Source§impl<Dtype, T> IndexableMatrix<Dtype> for T
impl<Dtype, T> IndexableMatrix<Dtype> for T
fn matmul<R>(&self, other: &R) -> Matrix<Dtype>where
R: MatrixTrait<Dtype> + IndexableTensor<Dtype>,
Source§impl<Dtype, T> IndexableTensor<Dtype> for Twhere
T: HasTensorShapeData<Dtype>,
Dtype: Copy,
impl<Dtype, T> IndexableTensor<Dtype> for Twhere
T: HasTensorShapeData<Dtype>,
Dtype: Copy,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more