Re: [math] Is this good practice?

2012-09-11 Thread Gilles Sadowski
Hello. [...] I will try and do some benchmarking on this issue. I do not like these micro-optimizations which tend to be true optimizations with one version of the JVM, and are no longer with the next one. Also, while we are at it, is there a benefit in defining a separate, specialized

Re: [math] Is this good practice?

2012-09-10 Thread Luc Maisonobe
Le 10/09/2012 21:08, Sébastien Brisard a écrit : Hi, Hi Sébastien, I thought it was not good practice to rely on exception in unexceptional circumstances. In ArrayFieldVector, there are numerous occurences of the following pattern public FieldVectorT add(FieldVectorT v)

Re: [math] Is this good practice?

2012-09-10 Thread Benedikt Ritter
Hi, 2012/9/10 Luc Maisonobe luc.maison...@free.fr: Le 10/09/2012 21:08, Sébastien Brisard a écrit : Hi, Hi Sébastien, I thought it was not good practice to rely on exception in unexceptional circumstances. In ArrayFieldVector, there are numerous occurences of the following pattern

Re: [math] Is this good practice?

2012-09-10 Thread Gilles Sadowski
On Mon, Sep 10, 2012 at 10:07:11PM +0200, Benedikt Ritter wrote: Hi, 2012/9/10 Luc Maisonobe luc.maison...@free.fr: Le 10/09/2012 21:08, Sébastien Brisard a écrit : Hi, Hi Sébastien, I thought it was not good practice to rely on exception in unexceptional circumstances. In

Re: [math] Is this good practice?

2012-09-10 Thread Sébastien Brisard
Hi, 2012/9/11 Gilles Sadowski gil...@harfang.homelinux.org: On Mon, Sep 10, 2012 at 10:07:11PM +0200, Benedikt Ritter wrote: Hi, 2012/9/10 Luc Maisonobe luc.maison...@free.fr: Le 10/09/2012 21:08, Sébastien Brisard a écrit : Hi, Hi Sébastien, I thought it was not good practice to