Re: Accessing indices and values in SparseVector

2015-02-03 Thread Sean Owen
When you are describing an error, you should say what the error is. Here I'm pretty sure it says there is no such member of Vector, right? You explicitly made the type of sv2 Vector and not SparseVector, and the trait does not have any indices member. No it's not a problem, and I think the

Re: Accessing indices and values in SparseVector

2015-02-03 Thread Manoj Kumar
Alright, thanks for the quick clarification.

Accessing indices and values in SparseVector

2015-02-03 Thread Manoj Kumar
Hello, This is related to one of the issues that I'm working on. I am not sure if this is expected behavior or not. This works fine. val sv2 = new SparseVector(3, Array(0, 2), Array(1.1, 3.0)) sv2.indices But when I do this val sv2: Vector = Vectors.sparse(3, Array(0, 2), Array(1.1, 3.0))