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.