Function peroxide::util::non_macro::eye

source ·
pub fn eye(n: usize) -> Matrix
Expand description

MATLAB like eye - Identity matrix

§Examples

use peroxide::fuga::*;

let a = eye(2);
assert_eq!(a, MATLAB::new("1 0;0 1"));