Working through Vector/Matrix classes I found a lot of things that could be tightened.
-Would it be worthwhile to change the Vector and Matrix structures so that things like "sparse against dense" and popped in a central place? For example, Vector would have a few methods, and there would be a new "VectorOps" class. The latter implements "sparse v.s. dense" using the classes of input vectors. For example, DenseVector currently has "if the other is DenseVector, here is the fast path" code bits. Under this redo, there is a DenseDense operator. Vector.multiply(vector, vector) is a static method that pulls the classes of the inputs, and finds the DenseDense version. Yes, it would be an invasive patch. Lance Norskog [email protected]
