Trait Matrix

Source
pub trait Matrix: Into<Conventional<Self::Element>> + Size {
    type Element: Element;

    // Required methods
    fn nonzeros(&self) -> usize;
    fn zero<S: Size>(_: S) -> Self;
}
Expand description

A matrix.

Required Associated Types§

Source

type Element: Element

The element type.

Required Methods§

Source

fn nonzeros(&self) -> usize

Count nonzero elements.

Source

fn zero<S: Size>(_: S) -> Self

Create a zero matrix.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§