lazymatrix::VectorView
LazyMatrix for Rust · 0.8.1
rust
pub trait VectorView<F: Scalar>Read-only indexed access to a dense logical vector.
Implementations may be contiguous or strided. Indexing must take O(1) time; algorithms must not assume that the entries form a slice.
Methods
get
rust
fn get(&self, index: usize) -> Fis_empty
rust
fn is_empty(&self) -> boollen
rust
fn len(&self) -> usizesum
rust
fn sum(&self) -> F
