Struct icu_segmenter::complex::lstm::matrix::MatrixBorrowed
source · pub(super) struct MatrixBorrowed<'a, const D: usize> {
data: &'a [f32],
dims: [usize; D],
}
Expand description
A D
-dimensional, borrowed matrix.
Fields§
§data: &'a [f32]
§dims: [usize; D]
Implementations§
source§impl<'a, const D: usize> MatrixBorrowed<'a, D>
impl<'a, const D: usize> MatrixBorrowed<'a, D>
pub(super) fn debug_assert_dims(&self, dims: [usize; D])
pub(super) fn as_slice(&self) -> &'a [f32]
sourcepub(super) fn submatrix<const M: usize>(
&self,
index: usize,
) -> Option<MatrixBorrowed<'a, M>>
pub(super) fn submatrix<const M: usize>( &self, index: usize, ) -> Option<MatrixBorrowed<'a, M>>
fn submatrix_range<const M: usize>( &self, index: usize, ) -> (Range<usize>, [usize; M])
source§impl<'a> MatrixBorrowed<'a, 1>
impl<'a> MatrixBorrowed<'a, 1>
pub(super) fn dot_1d(&self, other: MatrixZero<'_, 1>) -> f32
Trait Implementations§
source§impl<'a, const D: usize> Clone for MatrixBorrowed<'a, D>
impl<'a, const D: usize> Clone for MatrixBorrowed<'a, D>
source§fn clone(&self) -> MatrixBorrowed<'a, D>
fn clone(&self) -> MatrixBorrowed<'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 MatrixBorrowed<'a, D>
impl<'a, const D: usize> Debug for MatrixBorrowed<'a, D>
impl<'a, const D: usize> Copy for MatrixBorrowed<'a, D>
Auto Trait Implementations§
impl<'a, const D: usize> Freeze for MatrixBorrowed<'a, D>
impl<'a, const D: usize> RefUnwindSafe for MatrixBorrowed<'a, D>
impl<'a, const D: usize> Send for MatrixBorrowed<'a, D>
impl<'a, const D: usize> Sync for MatrixBorrowed<'a, D>
impl<'a, const D: usize> Unpin for MatrixBorrowed<'a, D>
impl<'a, const D: usize> UnwindSafe for MatrixBorrowed<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)