Hi all,
I ran into a bug where the cosine of a large vector taken with itself
returned NaN. (Cosine of equal vectors should always be 1.) I put
together a PR to do the internal math of the cosine function with double,
before returning the result as a float:
https://github.com/apache/lucene/pull/12281
--
Jonathan Ellis
co-founder, http://www.datastax.com
@spyced
I ran into a bug where the cosine of a large vector taken with itself
returned NaN. (Cosine of equal vectors should always be 1.) I put
together a PR to do the internal math of the cosine function with double,
before returning the result as a float:
https://github.com/apache/lucene/pull/12281
--
Jonathan Ellis
co-founder, http://www.datastax.com
@spyced