Hello. > > [...] > > I agree. > > > >> > >> This does not solve the whole issue, however, because if the default > >> entry is zero, its sign is lost, and {finite value} / {zero} is of > >> undetermined sign. Any idea regarding this point? > > > > I guess that we could also keep a flag for the sign. > > > Do you mean that the default value would be +0 or -0, in some zero > entries would be stored?
I didn't get the end of the sentence. Anyways, what I meant is indeed to be able to specify that the default zero is negative (so that "v / zero" has the correct sign). > Or do you mean to store the sign of each zero > entry, which is slightly less efficient than the present > implementation, but would work OK? No. > These signs could be stored in very > compact form (as bits), as they need only seldom be retrieved. I strongly prefer a "boolean" unless you can devise a way to perform calculations that strongly benefit from bit manipulation. Anyways, let's not try to re-invent the wheel... Regards, Gilles > [...] --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org