The syntax of the linspace function
vec linspace(double from, double to, int length = 100);
indicates that the first value is exactly equal to "from" and the last value is exactly equal to "to". With the current implementation the last value of the vector will however be slightly offset from "to", due to numerical errors.
This is particularly cumbersome when there values in the vector har used as input to another function that for example asserts that the input is lower, or equal, to the "to" value, in which case that function will randomly trigger the assertion depending on the system or OS.
Attached to this bug report is a patch file, that resolves the problem without any additional complexity