Function peroxide::util::non_macro::zeros

source ·
pub fn zeros(r: usize, c: usize) -> Matrix
Expand description

MATLAB like zeros (Matrix)

§Examples

use peroxide::fuga::*;

let a = zeros(2, 2);
assert_eq!(a, matrix(vec![0f64;4], 2, 2, Row));