That's for historical reasons. Originally float arrays/matrices was not supported in ojAlgo, and <Double>
naturally always referred to an underlying double[].
Now ojAlgo has partial support for float[], but only as space saving "primitive" arrays. Everything internal to Primitive32Array
(as an example) is float and float[], but its API is still <Double>
.
In ojAlgo <Double>
essentially means "primitive".
Full support for float (for the matrices and linear algebra) is contemplated. When/if that happens <Double>
may be replaced by <Number>
to indicate anything "primitive".