lazymatrix::DenseBlock
LazyMatrix for Rust · 0.8.1
rust
pub struct DenseBlock<'a, F>A packed, row-major block borrowing caller-owned read storage.
Dimensions describe the logical rectangle, without storage-chunk padding. Entries are raw matrix values, including fill values and nonfinite values.
Inherent implementation
rust
impl<'a, F> DenseBlock<'a, F>get
rust
pub fn get(&self, row: usize, column: usize) -> F where F: CopyRead an entry using indices relative to the block.
Panics
Panics if either index is outside the logical dimensions.
new
rust
pub fn new(values: &'a [F], nrows: usize, ncols: usize) -> SelfBorrow packed values with the given logical dimensions.
Panics
Panics if the dimensions overflow or their product differs from the length of values.
values
rust
pub fn values(&self) -> &'a [F]Borrow the packed row-major values.
Implementation of Clone
rust
impl<'a, F: core::clone::Clone> Clone for DenseBlock<'a, F>clone
rust
fn clone(&self) -> SelfImplementation of Copy
rust
impl<'a, F: core::marker::Copy> Copy for DenseBlock<'a, F>Implementation of Debug
rust
impl<'a, F: core::fmt::Debug> Debug for DenseBlock<'a, F>fmt
rust
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::ResultImplementation of MatrixRead
rust
impl<F: Scalar> MatrixRead<F> for lazymatrix::DenseBlock<'_, F>get
rust
fn get(&self, row: usize, column: usize) -> FImplementation of MatrixShape
rust
impl<F> MatrixShape for DenseBlock<'_, F>ncols
rust
fn ncols(&self) -> usizenrows
rust
fn nrows(&self) -> usizeImplementation of Freeze
rust
impl<'a, F> Freeze for DenseBlock<'a, F> where &'a [F]: FreezeImplementation of RefUnwindSafe
rust
impl<'a, F> RefUnwindSafe for DenseBlock<'a, F> where &'a [F]: RefUnwindSafeImplementation of Send
rust
impl<'a, F> Send for DenseBlock<'a, F> where &'a [F]: SendImplementation of Sync
rust
impl<'a, F> Sync for DenseBlock<'a, F> where &'a [F]: SyncImplementation of Unpin
rust
impl<'a, F> Unpin for DenseBlock<'a, F> where &'a [F]: UnpinImplementation of UnsafeUnpin
rust
impl<'a, F> UnsafeUnpin for DenseBlock<'a, F> where &'a [F]: UnsafeUnpinImplementation of UnwindSafe
rust
impl<'a, F> UnwindSafe for DenseBlock<'a, F> where &'a [F]: UnwindSafeImplementation of Any
rust
impl<T> Any for T where T: 'static + ?SizedImplementation of Borrow
rust
impl<T> Borrow<T> for T where T: ?SizedImplementation of BorrowMut
rust
impl<T> BorrowMut<T> for T where T: ?SizedImplementation of ByRef
rust
impl<T> ByRef<T> for TImplementation of CastableFrom
rust
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT where ST: ?Sized, DT: ?SizedImplementation of CastableFrom
rust
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT where ST: ?Sized, DT: ?SizedImplementation of CloneToUninit
rust
impl<T> CloneToUninit for T where T: CloneImplementation of From
rust
impl<T> From<T> for TImplementation of Imply
rust
impl<T, U> Imply<T> for U where T: ?Sized, U: ?SizedImplementation of Into
rust
impl<T, U> Into<U> for T where U: From<T>Implementation of IntoEither
rust
impl<T> IntoEither for TImplementation of Pointable
rust
impl<T> Pointable for TImplementation of Read
rust
impl<T> Read<Exclusive, BecauseExclusive> for T where T: ?SizedImplementation of Same
rust
impl<T> Same for TImplementation of SupersetOf
rust
impl<SS, SP> SupersetOf<SS> for SP where SS: SubsetOf<SP>Implementation of ToOwned
rust
impl<T> ToOwned for T where T: CloneImplementation of TryFrom
rust
impl<T, U> TryFrom<U> for T where U: Into<T>Implementation of TryInto
rust
impl<T, U> TryInto<U> for T where U: TryFrom<T>
