Skip to content

lazymatrix::VectorView ​

LazyMatrix for Rust · 0.8.1

Source

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) -> F

Source

is_empty ​

rust
fn is_empty(&self) -> bool

Source

len ​

rust
fn len(&self) -> usize

Source

sum ​

rust
fn sum(&self) -> F

Source

Released under the MIT and Apache 2.0 licenses.