Sam Halliday wrote:
Luc Maisonobe wrote:
Perhaps having a single additional method getSparcity() or
getLoadRatio() returning the ratio of elements set to the total number
as a double would be useful ?
Perhaps... but the shape is probably more important than the sparsity score
(which doesn't necessarily mean anything, and might actually be difficult to
calculate for some implementations). I recommend leaving it empty for now
and we can discuss it in much more detail for 2.1 :-)
+1 for leaving leaving RealSparse{Matrix, Vector} as markers (empty).
Defining a suitable shape property and exposing that is a good idea, but
will take some time and discussion. Also, if getSparcity() is of
limited value and may be hard to compute for some impls, we need think
carefully about putting it into the base interface. So leaving these as
markers seems reasonable.
Phil
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org