On Sun, Nov 25, 2012 at 06:00:06PM +0100, Sébastien Brisard wrote:
> Hi,
> in MATH-803 [1] it was decided to deprecate RealVector.ebeMultiply/Divide,
> because these methods were difficult to support with sparse vectors.
> However, in MATH-870, we decided to deprecate sparse vectors altogether.
> 
> I'm therefore having second thoughts on MATH-803. Since the problematic
> implementations of RealVector are removed, why not keep these quite handy
> methods?
> 
> BTW, these methods could be implemented with visitors, but the current
> interface of vector visitors allows visiting only ONE vector at a time. So
> visiting TWO vectors simultaneously requires uggly tweaking of this
> interface (basically, storing a reference of one of the two vectors to be
> visited as a class variable of the visitor itself... so much for
> imutability).
> 
> How about we introduce "zip-visitors" to visit simultaneously two vectors?

I don't know the phrase "zip-visitors".
How would they work?

Regards,
Gilles

> This is just an idea, it can of course wait until 3.2, but if we agree upon
> the idea, I can file a JIRA ticket for the record.
> 
> Best regards,
> 
> Sébastien
> 
> [1] https://issues.apache.org/jira/browse/MATH-803
> [2] https://issues.apache.org/jira/browse/MATH-870

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to