macro_rules! sfs2d {
($([$($x:literal),+ $(,)?]),+ $(,)?) => { ... };
}Expand description
Creates an unnormalised 2D SFS.
This is mainly intended for readability in doc-tests, but may also be useful elsewhere.
ยงExamples
use winsfs_core::sfs2d;
let sfs = sfs2d![
[0.1, 0.2, 0.3],
[0.4, 0.5, 0.6],
[0.7, 0.8, 0.9],
];
assert_eq!(sfs[[0, 0]], 0.1);
assert_eq!(sfs[[1, 0]], 0.4);
assert_eq!(sfs[[2, 0]], 0.7);