On Jun 9, 2009, at 6:36 PM, Grant Ingersoll wrote:
On Jun 9, 2009, at 5:49 PM, Grant Ingersoll wrote:
I'm looking into the whole labels thing as well as Vector stuff and
I'm confused by a couple of things.
1. DirchletMapper assumes DenseVector implementation, no? Line 45?
2. Shouldn't DenseVector implement equals like SparseVector does?
And, along those lines, do the equals() implementations really need
to be class equivalent? In other words, isn't it possible to have a
SparseVector and a DenseVector containing the same points be
equals(), despite what the SparseVector.equals() method implements?
Likewise for VectorView?
So, I think maybe instead of allowing equals() to return true across
implementations, we could add a static method that compares two
Vectors and returns true, something like:
static boolean equivalent(Vector a, Vector b)
-Grant