I would like the first two elements to be treated as equal. I saw that it has a keyword ls. I tried passing various functions to ls but nothing worked. Is there a way to account for the numerical error?
Yeah. I think that is the best approach when the size of the vector is small. I think round will be OK for my use case, but I think I need to use 15 instead of 1 for digits. I don’t know if there is a solution which avoids copying which might be a problem with large vectors. I don’t need that at the moment, but I want to acknowledge the potential performance impact scale.