Trait Broadcastable

Source
pub trait Broadcastable<T> {
    // Required method
    fn to_vec(&self, rows: usize, cols: usize) -> Vec<T>;
}
Expand description

A trait to turn either a Matrix<T> or a scalar T into a Vec<T> of length rows*cols (broadcasting the scalar). Used for comparisons.

Required Methods§

Source

fn to_vec(&self, rows: usize, cols: usize) -> Vec<T>

Implementors§

Source§

impl<T: Clone> Broadcastable<T> for Matrix<T>

Source§

impl<T: Clone> Broadcastable<T> for T