Closed Axect closed 2 years ago
If end - start is too small, then linspace may not guarantee the length of output. For example, below code generates error.
end - start
linspace
use peroxide::fuga::*; fn main() { let x = linspace(435482956799564540_f64, 435482956800000000, 101); assert_eq!(x.len(), 101); }
This error is caused from seq - seq does not guarantee the length. Thus, linspace should not depend on implementation of seq.
seq
If
end - start
is too small, thenlinspace
may not guarantee the length of output. For example, below code generates error.This error is caused from
seq
-seq
does not guarantee the length. Thus,linspace
should not depend on implementation ofseq
.