macro_rules! zeros {
( $n:expr ) => { ... };
( $r:expr, $c:expr ) => { ... };
}
Expand description
MATLAB like zeros - zero matrix
ยงExamples
#[macro_use]
extern crate peroxide;
use peroxide::fuga::*;
fn main() {
let a = zeros!(4);
assert_eq!(a, c!(0,0,0,0));
let b = zeros!(3, 2);
assert_eq!(b, matrix(c!(0,0,0,0,0,0), 3, 2, Row));
}