Struct icu_segmenter::complex::lstm::matrix::MatrixZero
source · pub(super) struct MatrixZero<'a, const D: usize> {
data: &'a ZeroSlice<f32>,
dims: [usize; D],
}
Expand description
A D
-dimensional matrix borrowed from a ZeroSlice
.
Fields§
§data: &'a ZeroSlice<f32>
§dims: [usize; D]
Implementations§
source§impl<'a, const D: usize> MatrixZero<'a, D>
impl<'a, const D: usize> MatrixZero<'a, D>
pub(super) fn to_owned(&self) -> MatrixOwned<D>
pub(super) fn as_slice(&self) -> &ZeroSlice<f32>
pub(super) fn debug_assert_dims(&self, dims: [usize; D])
fn submatrix_range<const M: usize>( &self, index: usize, ) -> (Range<usize>, [usize; M])
Trait Implementations§
source§impl<'a, const D: usize> Clone for MatrixZero<'a, D>
impl<'a, const D: usize> Clone for MatrixZero<'a, D>
source§fn clone(&self) -> MatrixZero<'a, D>
fn clone(&self) -> MatrixZero<'a, D>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a, const D: usize> Debug for MatrixZero<'a, D>
impl<'a, const D: usize> Debug for MatrixZero<'a, D>
source§impl<'a> From<&'a LstmMatrix1<'a>> for MatrixZero<'a, 1>
impl<'a> From<&'a LstmMatrix1<'a>> for MatrixZero<'a, 1>
source§fn from(other: &'a LstmMatrix1<'a>) -> Self
fn from(other: &'a LstmMatrix1<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a LstmMatrix2<'a>> for MatrixZero<'a, 2>
impl<'a> From<&'a LstmMatrix2<'a>> for MatrixZero<'a, 2>
source§fn from(other: &'a LstmMatrix2<'a>) -> Self
fn from(other: &'a LstmMatrix2<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a LstmMatrix3<'a>> for MatrixZero<'a, 3>
impl<'a> From<&'a LstmMatrix3<'a>> for MatrixZero<'a, 3>
source§fn from(other: &'a LstmMatrix3<'a>) -> Self
fn from(other: &'a LstmMatrix3<'a>) -> Self
Converts to this type from the input type.
impl<'a, const D: usize> Copy for MatrixZero<'a, D>
Auto Trait Implementations§
impl<'a, const D: usize> Freeze for MatrixZero<'a, D>
impl<'a, const D: usize> RefUnwindSafe for MatrixZero<'a, D>
impl<'a, const D: usize> Send for MatrixZero<'a, D>
impl<'a, const D: usize> Sync for MatrixZero<'a, D>
impl<'a, const D: usize> Unpin for MatrixZero<'a, D>
impl<'a, const D: usize> UnwindSafe for MatrixZero<'a, D>
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