Skip to content

lazymatrix::MatrixOwned โ€‹

LazyMatrix for Rust ยท 0.8.1

Source

rust
pub trait MatrixOwned<F: Scalar>: MatrixWrite<F> + Sized

Allocate owned dense storage in an explicitly selected backend.

Methods โ€‹

zeros โ€‹

rust
fn zeros(nrows: usize, ncols: usize) -> Self

Source

Allocate a zero-filled matrix with shape (nrows, ncols).

Size overflow panics. Allocation failure follows the backend's behavior.

Released under the MIT and Apache 2.0 licenses.