lazymatrix::VectorOwned
LazyMatrix for Rust · 0.8.1
rust
pub trait VectorOwned<F: Scalar>: VectorView<F>Construct owned vector storage compatible with a vector or borrowed view.
Lazy operator components use this capability for coefficient scratch and allocating results. Construction takes O(len) time and storage, without requiring contiguous access to the source view.
Associated types
Owned
rust
type Owned: VectorOwned<F, Owned = <Self as VectorOwned>::Owned> + VectorViewMut<F>;The corresponding resizable, owned backend vector type.
Methods
owned_from_fn
rust
fn owned_from_fn(
len: usize,
value: impl FnMut(usize) -> F
) -> <Self as VectorOwned>::OwnedConstruct a vector whose entry at each index is supplied by value.

