commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles Sadowski <gil...@harfang.homelinux.org>
Subject Re: [math] Second thoughts on MATH-803 and "zip-visitor" for vectors.
Date Mon, 26 Nov 2012 12:20:42 GMT
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-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message