Skip to content

lazymatrix::VectorOwned ​

LazyMatrix for Rust · 0.8.1

Source

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>;

Source

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>::Owned

Source

Construct a vector whose entry at each index is supplied by value.

Released under the MIT and Apache 2.0 licenses.