Re: [all] Amazon Corretto

2018-11-14 Thread Ole Ersoy
It's a lot harder to do that now without seriously tarnishing your brand.  M$ is doing some very good things - VSCode, RxJS ... Successful companies are seeing the light and the ones that are not are very quickly forgotten about ... On 11/14/18 12:33 PM, Eric Barnhill wrote: It reminds me unco

Re: [all] Amazon Corretto

2018-11-14 Thread Ole Ersoy
That totally rocks! Ole On 11/14/18 9:50 AM, Mark Struberg wrote: One more option. Which is good for the Java ecosystem. LieGrue, strub Am 14.11.2018 um 15:14 schrieb Rob Tompkins : Curious to see what people’s thoughts are to this: https://aws.amazon.com/corretto/ -Rob --

Re: Java 8 curiousity

2017-10-09 Thread Ole Ersoy
Are you using streams?  A while back I experimented with matrix multiplication using streams and they can be very slow: https://stackoverflow.com/questions/35037893/java-8-stream-matrix-multiplication-10x-slower-than-for-loop So I would think that Java has a lot of performance tuning and optimi

Re: [MATH] what a commons-TLP split could look like

2016-06-21 Thread Ole Ersoy
On 06/21/2016 08:07 AM, Jochen Wiedmann wrote: On Tue, Jun 21, 2016 at 2:54 PM, Ralph Goers wrote: Maybe. That could depend on whether there is anyone at Commons that would want to participate in the component. Another option is to follow the pattern used by httpclient. I believe they took

Re: [crypto][chimera] Next steps

2016-02-20 Thread Ole Ersoy
Hi Benedikt, I think it would be better for the projects health if it uses github issues only. Cheers, Ole On 02/20/2016 05:15 AM, Benedikt Ritter wrote: Hi, I'd like to discuss the next steps for moving the Chimera component to Apache Commons. So far, none of the other PMC members has expr

Re: [Math] Maven expert needed...

2016-02-13 Thread Ole Ersoy
On 02/13/2016 11:29 AM, Gilles wrote: On Sat, 13 Feb 2016 10:40:41 -0600, Ole Ersoy wrote: The project as a whole should probably begin to consider using markdown documents / the github wiki / github pages as a replacement for the documentation build step. More loosely coupled documentation

Re: [Math] Maven expert needed...

2016-02-13 Thread Ole Ersoy
The project as a whole should probably begin to consider using markdown documents / the github wiki / github pages as a replacement for the documentation build step. More loosely coupled documentation is easier to contribute to. Github markdown documents can be edited directly on github. Mos

Re: [all] apologies

2016-02-08 Thread Ole Ersoy
Both Phil and Gilles could have handled this more surgically from the start. A great solution to this is easily within the emotional and technical ability of both of them. To take the view that this is game over is non sense. Ole On 02/08/2016 06:45 PM, Niall Pemberton wrote: On Mon, Feb 8

Re: [math] ConvergenceChecker

2016-02-08 Thread Ole Ersoy
Hi Evan, On 02/08/2016 08:10 AM, Evan Ward wrote: Hi Ole, On 02/05/2016 06:40 PM, Ole Ersoy wrote: On 02/05/2016 04:42 PM, Evan Ward wrote: Yes, I use it. In some cases it is useful to watch the RMS residuals So if it were modularized and supported logging then this might satisfy the same

Re: [Math] How fast is fast enough?

2016-02-06 Thread Ole Ersoy
The one thing that's really ticking me off is that I realize that Phil's grasp of probability is a lot fresher than my own. Anyways don't worry about it. I hope we can piece all of this back together, because I have a lot more stuff to annoy some of you with. Cheers, Ole On 02/06/2016 05:3

Re: [math] ConvergenceChecker

2016-02-05 Thread Ole Ersoy
On 02/05/2016 04:42 PM, Evan Ward wrote: Yes, I use it. In some cases it is useful to watch the RMS residuals So if it were modularized and supported logging then this might satisfy the same requirement? , in other cases to watch the change in the states. I think it is there from an acknowle

[math] ConvergenceChecker

2016-02-05 Thread Ole Ersoy
Hi, The LeastSquaresProblem supports dropping in a custom ConvergenceChecker checker. Does anyone do this? Can you help me better understand the value of it? TIA, Ole - To unsubscribe, e-mail: dev-unsubscr...@commons.apache

Re: [math] LevenbergMarquardt Evaluation Lazy vs. Unlazy

2016-02-05 Thread Ole Ersoy
On 02/05/2016 04:52 AM, Gilles wrote: On Thu, 4 Feb 2016 18:56:20 -0600, Ole Ersoy wrote: On 02/04/2016 04:13 PM, Gilles wrote: On Thu, 4 Feb 2016 14:10:39 -0600, Ole Ersoy wrote: Hi, Has anyone performed any benchmarking on lazy vs. unlazy Evaluation(s) Someone did: https

[math] LeastSquaresProblem countEvaluations?

2016-02-04 Thread Ole Ersoy
Hi, The LM optimize method counts evaluations. The below method also does. Just wanted to check in to see whether it's still supposed to? public static LeastSquaresProblem countEvaluations(final LeastSquaresProblem problem, final Inc

Re: [math] LevenbergMarquardt Evaluation Lazy vs. Unlazy

2016-02-04 Thread Ole Ersoy
On 02/04/2016 04:13 PM, Gilles wrote: On Thu, 4 Feb 2016 14:10:39 -0600, Ole Ersoy wrote: Hi, Has anyone performed any benchmarking on lazy vs. unlazy Evaluation(s) Someone did: https://issues.apache.org/jira/browse/MATH-1128 or is there some obvious criteria on when to use one vs. the

Re: [math] LevenbergMarquardt ParameterValidator

2016-02-04 Thread Ole Ersoy
On 02/04/2016 04:30 PM, Gilles wrote: On Thu, 4 Feb 2016 15:08:30 -0600, Ole Ersoy wrote: Hi, I'm attempting to understand when and how I would want to use the ParameterValidator WRT LevenbergMarquardt problem construction. Anyone have any stories they can share? It is possible tha

[math] LevenbergMarquardt ParameterValidator

2016-02-04 Thread Ole Ersoy
Hi, I'm attempting to understand when and how I would want to use the ParameterValidator WRT LevenbergMarquardt problem construction. Anyone have any stories they can share? TIA, Ole - To unsubscribe, e-mail: dev-unsubscr...

[math] LevenbergMarquardt Evaluation Lazy vs. Unlazy

2016-02-04 Thread Ole Ersoy
Hi, Has anyone performed any benchmarking on lazy vs. unlazy Evaluation(s) or is there some obvious criteria on when to use one vs. the other? I only see getResiduals() being called once in the optimize() method right after a new evaluation is created: current = problem.evalu

Re: [math] [POLL] new TLP name

2016-02-01 Thread Ole Ersoy
Apache Epsilon On 02/01/2016 03:55 PM, Bruce Johnson wrote: Apache Epsilon On Feb 1, 2016, at 12:06 PM, Phil Steitz wrote: Please select your top choice among the following suggested names for the new [math]-based TLP. All are welcome and encouraged to respond. This POLL will be open for

Re: [math] Name of the new TLP

2016-01-25 Thread Ole Ersoy
math into modules, I encourage you to also provide an all-in-one jar. Gary On Jan 25, 2016 4:22 PM, "Ole Ersoy" wrote: Also if each module is very simple and isolated alphas, betas, etc. matter less (If at all). Most devs releasing to npm rely on semver only. Cheers, Ole On 01/25/201

Re: [math] Name of the new TLP

2016-01-25 Thread Ole Ersoy
Also if each module is very simple and isolated alphas, betas, etc. matter less (If at all). Most devs releasing to npm rely on semver only. Cheers, Ole On 01/25/2016 02:27 PM, Gary Gregory wrote: On Jan 25, 2016 10:11 AM, "Emmanuel Bourg" wrote: Le 25/01/2016 18:52, Gilles a écrit : AFAI

Re: [math] Name of the new TLP

2016-01-25 Thread Ole Ersoy
0 minutes. It's very easy to integrate / extend this into any (CM or non CM) math project. So if we create an organization structure targeting small simple modules I think we will have a lot more fun with this. Cheers, Ole On 01/25/2016 07:47 AM, Phil Steitz wrote: On 1/25/16 12:40 AM, Ole

Re: [math] Name of the new TLP

2016-01-25 Thread Ole Ersoy
I quite like Apache Epsilon as a non-descriptive but related name. [ducks behind bikshed] Benedikt 2016-01-25 8:40 GMT+01:00 Ole Ersoy : Umbrella-ish is good. Linear algebra, genetic algorithms, neural networks, clustering, monte carlo, simplex...These need an umbrella. Some of the other Apach

Re: [math] Name of the new TLP

2016-01-24 Thread Ole Ersoy
Umbrella-ish is good. Linear algebra, genetic algorithms, neural networks, clustering, monte carlo, simplex...These need an umbrella. Some of the other Apache projects that do math may be interested in moving that piece under the Apache Math umbrella. Personally I like to see each in a separ

Re: [math] Name of the new TLP

2016-01-24 Thread Ole Ersoy
I like Apache Math as well. Cheers, Ole On 01/24/2016 04:18 PM, James Carman wrote: I'm okay with that too. Apache Math On Sun, Jan 24, 2016 at 5:17 PM Gilles wrote: Just plain and simple "Apache Math" maybe? Or is it taken already? Gilles On Sun, 24 Jan 2016 14:46:17 -0700, Phil Steitz w

Re: [math] RealMatrix power requires square matrix?

2016-01-20 Thread Ole Ersoy
Never mind on the below - I was thinking scalar operations ... Cheers, Ole On 01/20/2016 04:53 PM, Ole Ersoy wrote: Hi, The RealMatrix.power(p) (http://commons.apache.org/proper/commons-math/apidocs/org/apache/commons/math3/linear/RealMatrix.html#power%28int%29) says that it will throw a

[math] RealMatrix power requires square matrix?

2016-01-20 Thread Ole Ersoy
Hi, The RealMatrix.power(p) (http://commons.apache.org/proper/commons-math/apidocs/org/apache/commons/math3/linear/RealMatrix.html#power%28int%29) says that it will throw a NON_SQUARE_MATRIX_EXCEPTION. Is this correct? Cheers, Ole

Re: [math] TLP

2016-01-13 Thread Ole Ersoy
-math https://github.com/apache/commons-lang Gary On Wed, Jan 13, 2016 at 6:04 PM, Ole Ersoy wrote: I love the idea. I also think commons will get a lot more eye balls if it gets all the repositories on github and enables the watch button as well as github issues. Cheers, Ole On 01/13/2016 07

Re: [math] TLP

2016-01-13 Thread Ole Ersoy
I love the idea. I also think commons will get a lot more eye balls if it gets all the repositories on github and enables the watch button as well as github issues. Cheers, Ole On 01/13/2016 07:24 PM, Gary Gregory wrote: I like having [math] in Commons. There are other multi-module projects

Re: [math] Should this throw a NO_DATA exception?

2016-01-09 Thread Ole Ersoy
is zero, but in the first case, is it? To be on the safe side, it should be an error, but I've just had to let this kind of condition pass (cf. MATH-1300 and related on the implemenation of "nextBytes(byte[],int,int)" feature). On Fri, 8 Jan 2016 18:41:27 -0600, Ole Ersoy wrote: publi

Re: [math] Should this throw a NO_DATA exception?

2016-01-08 Thread Ole Ersoy
ries. In the latter case, according to the formula, the norm is zero, but in the first case, is it? On Fri, 8 Jan 2016 18:41:27 -0600, Ole Ersoy wrote: public double getLInfNorm() { double norm = 0; Iterator it = iterator(); while (it.hasNext()) { fin

[math] Should this throw a NO_DATA exception?

2016-01-08 Thread Ole Ersoy
public double getLInfNorm() { double norm = 0; Iterator it = iterator(); while (it.hasNext()) { final Entry e = it.next(); norm = FastMath.max(norm, FastMath.abs(e.getValue())); } return norm; } Cheers, Ole --

Re: [math] Java 8 RealVector Functional Design

2016-01-05 Thread Ole Ersoy
enough for just about everything...I think...famous last words . Cheers, Ole On 01/05/2016 10:35 AM, Ole Ersoy wrote: Hi, I'm attempting a more minimalistic array vector design and just thought I'd float a partial API to see what you think. The below methods are both 'mapToSelf&#

[math] Java 8 RealVector Functional Design

2016-01-05 Thread Ole Ersoy
Hi, I'm attempting a more minimalistic array vector design and just thought I'd float a partial API to see what you think. The below methods are both 'mapToSelf' by default. If the user wants a new vector, she should first clone the vector and then call the map method (vector.clone().map(...

Re: [math] RealVector Fluid API vs. Java 8 Arrays.setAll

2016-01-03 Thread Ole Ersoy
On 01/03/2016 08:41 PM, Gilles wrote: On Sun, 3 Jan 2016 19:41:46 -0600, Ole Ersoy wrote: Hi, RealVector supports the following type of fluid API: |RealVectorresult =v.mapAddToSelf(3.4).mapToSelf(newTan()).mapToSelf(newPower(2.3)); IIUC each time we call v.mapXXX an iteration happens, so

[math] RealVector Fluid API vs. Java 8 Arrays.setAll

2016-01-03 Thread Ole Ersoy
Hi, RealVector supports the following type of fluid API: |RealVectorresult =v.mapAddToSelf(3.4).mapToSelf(newTan()).mapToSelf(newPower(2.3)); IIUC each time we call v.mapXXX an iteration happens, so with the above expression we loop 3 times. With Java 8 Arrays.setAll we can do the same thing

Re: [math] Matrix parallel operations

2016-01-03 Thread Ole Ersoy
[...] I am curious to see how this compares to simple for-loops which I can imagine help the JIT compiler to do loop unrolling and to make use of instruction-level parallelism. Otmar, Just read another article that evaluated some of Angelika Langers results. http://blog.codefx.org/java/stream-p

Re: [math] Matrix parallel operations

2016-01-03 Thread Ole Ersoy
On 01/03/2016 02:06 AM, Otmar Ertl wrote: Am 03.01.2016 7:49 vorm. schrieb "Ole Ersoy" : Hi, I ran another test using a single parallel loop for array based matrix vector multiplication. Throughput almost tripled (Test pasted at bottom): # Run complete. Total time: 00:13:24

Re: [math] Matrix parallel operations

2016-01-02 Thread Ole Ersoy
Hi, I ran another test using a single parallel loop for array based matrix vector multiplication. Throughput almost tripled (Test pasted at bottom): # Run complete. Total time: 00:13:24 Benchmark Mode Cnt Score Error Units MultiplyBenchmark.parallelMulti

Re: [math] Matrix parallel operations

2016-01-02 Thread Ole Ersoy
Hi Otmar, On 01/02/2016 10:33 AM, Otmar Ertl wrote: On Sat, Jan 2, 2016 at 4:38 AM, Ole Ersoy wrote: Hi, Hope ya'll are having an awesome new year! Some matrix operations, like createRealIdentityMatrix can be turned into one liners like this: IntStream.range(0, dimension).forE

Re: [math] RealVector.cosine() missing checkVectorDimension?

2016-01-02 Thread Ole Ersoy
On 01/02/2016 04:12 AM, Gilles wrote: On Sat, 2 Jan 2016 00:50:18 -0600, Ole Ersoy wrote: I think RealVector.cosine() is missing the checkVectorDimensions(v) check? "checkVectorDimensions" is called by "dotProduct". Oh good...at least one of us knows how t

[math] RealVector.cosine() missing checkVectorDimension?

2016-01-01 Thread Ole Ersoy
I think RealVector.cosine() is missing the checkVectorDimensions(v) check? - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org

[math] RealMatrix.setSubmatrix() interface Javadoc fix

2016-01-01 Thread Ole Ersoy
Hi, I created a pull request for the below for having the below added to RealMatrix.setSubmatrix(): * @throws MathIllegalStateException if {@code data} is null, but row or column are greater than zero. I updated the corresponding throws declarations on RealMatrix and

[math] Matrix parallel operations

2016-01-01 Thread Ole Ersoy
Hi, Hope ya'll are having an awesome new year! Some matrix operations, like createRealIdentityMatrix can be turned into one liners like this: IntStream.range(0, dimension).forEach(i -> m.setEntry(i, i, 1.0)); And can be performed in parallel like this: IntStream.range(0, dimens

Re: [math] RealMatrixFormat.parse()

2015-12-31 Thread Ole Ersoy
On 12/31/2015 05:42 PM, Gilles wrote: On Thu, 31 Dec 2015 12:54:00 -0600, Ole Ersoy wrote: On 12/31/2015 11:10 AM, Gilles wrote: On Wed, 30 Dec 2015 21:33:56 -0600, Ole Ersoy wrote: Hi, In RealMatrixFormat.parse() MatrixUtils makes the decision on what type of RealMatrix instance to return

Re: [math] RealMatrixFormat.parse()

2015-12-31 Thread Ole Ersoy
On 12/31/2015 11:10 AM, Gilles wrote: On Wed, 30 Dec 2015 21:33:56 -0600, Ole Ersoy wrote: Hi, In RealMatrixFormat.parse() MatrixUtils makes the decision on what type of RealMatrix instance to return. Ideally, this is correct as the actual type is an "implementation detail". F

Re: [math] RealMatrixFormat.parse()

2015-12-31 Thread Ole Ersoy
On 12/31/2015 03:33 AM, Luc Maisonobe wrote: Le 31/12/2015 04:33, Ole Ersoy a écrit : [...] Of course, using this feature is rather expert use. Typically, it is done when some algorithm creates the data array by itself, and then wants to return it as a matrix, but will not use the array by

[math] One more reason to add lombok

2015-12-30 Thread Ole Ersoy
Hi, This is a getter from RealMatrixFormat: /** * Get the format prefix. * * @return format prefix. */ public String getRowPrefix() { return rowPrefix; } Within RealMatrixFormat the properties include prefix and rowPrefix. Both have the same documentati

[math] RealMatrixFormat.parse()

2015-12-30 Thread Ole Ersoy
Hi, In RealMatrixFormat.parse() MatrixUtils makes the decision on what type of RealMatrix instance to return. Flexibility is gained if it just returns double[][] letting the caller decide what type of RealMatrix instance to create. It's also better for modularity, as is reduces RealMatrixFor

Re: [math] RealMatrixPreservingVisitor and RealMatrixChangingVisitor the same?

2015-12-30 Thread Ole Ersoy
On 12/30/2015 03:28 PM, Luc Maisonobe wrote: Le 30/12/2015 20:18, Ole Ersoy a écrit : Hi Luc, On 12/30/2015 03:55 AM, Luc Maisonobe wrote: Le 30/12/2015 06:18, Ole Ersoy a écrit : Hi, Hi Ole, RealMatrixPreservingVisitor and RealMatrixChangingVisitor files look identical with the

Re: [math] RealMatrixPreservingVisitor and RealMatrixChangingVisitor the same?

2015-12-30 Thread Ole Ersoy
Hi Luc, On 12/30/2015 03:55 AM, Luc Maisonobe wrote: Le 30/12/2015 06:18, Ole Ersoy a écrit : Hi, Hi Ole, RealMatrixPreservingVisitor and RealMatrixChangingVisitor files look identical with the exception of a single @see Default... annotation (Which I think is redundant...same as >

[math] RealMatrixPreservingVisitor and RealMatrixChangingVisitor the same?

2015-12-29 Thread Ole Ersoy
Hi, RealMatrixPreservingVisitor and RealMatrixChangingVisitor files look identical with the exception of a single @see Default... annotation (Which I think is redundant...same as > All known implementing classes...?). Would it make sense to remove the annotation and have one RealMatrixChangin

[math] Callback interface for Optimizer

2015-12-28 Thread Ole Ersoy
Hi, Just thought I'd share a concrete callback interface that I think this may work well for optimizers in general, even though I'm just working on Levenberg Marquardt ATM. The interface is pasted below, but roughly here's how it works. //Create an instance of an observer implementation. Opti

Re: [math] Thread safe RealVector

2015-12-26 Thread Ole Ersoy
On 12/26/2015 05:22 PM, Gilles wrote: On Sat, 26 Dec 2015 16:21:04 -0600, Ole Ersoy wrote: Hi, What do you think of removing iterator(), Entry, and Iterator() from RealVector? ArrayRealVector can replace these with Vector...I think...Still need to attempt it. Vector is synchronized so it

[math] Thread safe RealVector

2015-12-26 Thread Ole Ersoy
Hi, What do you think of removing iterator(), Entry, and Iterator() from RealVector? ArrayRealVector can replace these with Vector...I think...Still need to attempt it. Vector is synchronized so it makes it easier to make ArrayRealVector thread safe. Cheers, Ole --

Re: [math] RealVector.isInfinite() mixes in Nan check?

2015-12-26 Thread Ole Ersoy
On 12/26/2015 02:41 PM, Phil Steitz wrote: On 12/26/15 11:12 AM, Gilles wrote: On Sat, 26 Dec 2015 10:21:30 -0600, Ole Ersoy wrote: In RealVector there is an isInfinite() method that checks for isInfinite() and isNan() at the same time. If any coordinate is infinite, it will return true

Re: [math] RealVector.isInfinite() mixes in Nan check?

2015-12-26 Thread Ole Ersoy
On 12/26/2015 12:12 PM, Gilles wrote: On Sat, 26 Dec 2015 10:21:30 -0600, Ole Ersoy wrote: In RealVector there is an isInfinite() method that checks for isInfinite() and isNan() at the same time. If any coordinate is infinite, it will return true...unless a value is Nan...then it will return

[math] RealVector.isInfinite() mixes in Nan check?

2015-12-26 Thread Ole Ersoy
In RealVector there is an isInfinite() method that checks for isInfinite() and isNan() at the same time. If any coordinate is infinite, it will return true...unless a value is Nan...then it will return false. I'm probably missing something...but it seems like isInfinite() should return true i

Re: [math] MatrixDimensionMismatchException vs. DimensionMismatchException

2015-12-24 Thread Ole Ersoy
Actually - I the Factory is used, then the key signature should determine if it's an MDME or DME. So if 4 keys are used row, column, row, column then MDME otherwise DME...Sound good? Ole On 12/24/2015 06:12 PM, Ole Ersoy wrote: So if IUC whenever we are dealing with matrices, a MDME s

[math] MatrixDimensionMismatchException vs. DimensionMismatchException

2015-12-24 Thread Ole Ersoy
So if IUC whenever we are dealing with matrices, a MDME should be thrown? So in this needs an update?: https://github.com/apache/commons-math/blob/master/src/main/java/org/apache/commons/math4/linear/RealMatrix.java#L95 Ole -

Re: [math] Exception Design

2015-12-24 Thread Ole Ersoy
Hi Gilles, It sounds like we're starting to coalesce on this. Hopefully this is not going to come as too much of a shock :). [1] The exception patch will permeate every class that throws an exception. We will have to delete all the other exception and replace them with MathException. Here

[math] LevenbergMarquardt Lombok Generated Configuration Object

2015-12-23 Thread Ole Ersoy
Hola, I started working on my LevenbergMarquardt optimizer experiment, and figured I'd share the Lombok generated immutable configuration class that I split off from the optimizer. This is only for show...Not trying to restart the lombok inclusion in CM discussion. https://github.com/firefly

Re: [Math] Exceptions from "JDKRandomGenerator"

2015-12-23 Thread Ole Ersoy
A few drawbacks to having IAE thrown by CM is that it complicates and blurres things for those designing a handler that catches all CM exceptions. CM advertising a factory that throws each exception 'type' under globally unique conditions minimizes root cause analysis time and indirection. Th

Re: [math] Exception Design

2015-12-23 Thread Ole Ersoy
[...] On 12/23/2015 03:38 AM, luc wrote: interface ExceptionLocalizer { /** Localize an exception message. * @param locale locale to use * @param me exception to localize * @return localized message for the exception */ String localize(Locale locale, MathExcept

Re: [math] Exception Design

2015-12-23 Thread Ole Ersoy
[...] Looks good. Where is the code? ;-) So CM clients would: catch(MathException e) { String exceptionTemplate = ResourceBundle.getBundle("cm.exception.templates", new Locale("en", "US")).getString(e.getType()); String i18Nmessage = buildMessage(exceptionTemplate, e.getContext());

Re: [math] Exception Design

2015-12-22 Thread Ole Ersoy
On 12/22/2015 11:46 AM, Gilles wrote: Hi. On Mon, 21 Dec 2015 22:44:16 -0600, Ole Ersoy wrote: On 12/21/2015 06:44 PM, Gilles wrote: On Mon, 21 Dec 2015 12:14:16 -0600, Ole Ersoy wrote: Hi, I was considering jumping into the JDKRandomGenerator exception discussion, but I did not want to

Re: [Math] Exceptions from "JDKRandomGenerator"

2015-12-22 Thread Ole Ersoy
. One of the point in having exceptions that extends our own root exception is that users at higher level can catch this top level. Currently, we don't even advertise properly what we throw. We even miss to forward upward some exceptions thrown at low level in the javadoc/signature of out upper

Re: [math] Exception Design

2015-12-21 Thread Ole Ersoy
On 12/21/2015 06:44 PM, Gilles wrote: On Mon, 21 Dec 2015 12:14:16 -0600, Ole Ersoy wrote: Hi, I was considering jumping into the JDKRandomGenerator exception discussion, but I did not want to hijack it. Not sure if any of you have had a chance to looks at this: https://github.com/firefly

Re: [math] Updated FieldMatrix exceptions thrown to match javadoc.

2015-12-21 Thread Ole Ersoy
On 12/21/2015 01:45 PM, Phil Steitz wrote: On 12/21/15 12:26 PM, Ole Ersoy wrote: Should look like this, with some typos fixed: /** ... * @throws MatrixDimensionMismatchException if the dimensions of * {@code destination} do not match those of {@code this}. * @throws

Re: [math] Updated FieldMatrix exceptions thrown to match javadoc.

2015-12-21 Thread Ole Ersoy
Should look like this, with some typos fixed: /** ... * @throws MatrixDimensionMismatchException if the dimensions of * {@code destination} do not match those of {@code this}. * @throws NumberIsTooSmallException if {@code endRow < startRow} or * {@code endColumn < startCo

[math] Exception Design

2015-12-21 Thread Ole Ersoy
Hi, I was considering jumping into the JDKRandomGenerator exception discussion, but I did not want to hijack it. Not sure if any of you have had a chance to looks at this: https://github.com/firefly-math/firefly-math-exceptions/ https://github.com/firefly-math/firefly-math-exceptions/blob/maste

[math] Jitpack.io

2015-12-19 Thread Ole Ersoy
In the process of making the firefly modules available for automatic install via maven I came across this: https://jitpack.io/ Thought it might help ease publishing of test artifacts for math. Cheers, - Ole - To unsubscribe, e

[math] Arithmetic module

2015-12-18 Thread Ole Ersoy
Hi, I just published an arithmetic module / ArithmeticUtils repackaged. I would love to get some feedback on what you think of the exception design...any improvements...Do you think it could work for CM in general, etc? The exception design strips localization, but it should be very easy to r

[math] ArithmeticUtils subAndCheck try catch

2015-12-18 Thread Ole Ersoy
The (This is nit picky) ArithmeticUtils subAndCheck uses a message template that is meant for addition. Should it catch and rethrow the exception with a subtraction template? This is how the exception is thrown (Line 470): https://github.com/apache/commons-math/blob/master/src/main/java/org/ap

Re: [math] Updated FieldMatrix exceptions thrown to match javadoc.

2015-12-18 Thread Ole Ersoy
On 12/18/2015 04:07 PM, Phil Steitz wrote: On 12/18/15 2:59 PM, Ole Ersoy wrote: I think it makes sense. If the destination array is too small, throw an IAE. Right. That is what the implementations do - it is just a specialized IAE. We decided a while back not to throw "raw"

Re: [math] Updated FieldMatrix exceptions thrown to match javadoc.

2015-12-18 Thread Ole Ersoy
I think it makes sense. If the destination array is too small, throw an IAE. Perhaps the implementations need to be updated. I'm attempting to modularize the linear package ATM so I'll have a closer look. Cheers, - Ole On 12/18/2015 01:31 PM, Phil Steitz wrote: It does not look to me like

Re: [math] AbstractFieldMatrix.checkMultiplicationCompatible() throws exception?

2015-12-16 Thread Ole Ersoy
Actually I think I see why bubbling exceptions is better than performing boolean checks...so just ignore, unless there is some merit to it... Cheers, Ole On 12/16/2015 01:08 PM, Ole Ersoy wrote: Hi, I'm working on making the linear package standalone. The methods that perform precond

[math] AbstractFieldMatrix.checkMultiplicationCompatible() throws exception?

2015-12-16 Thread Ole Ersoy
Hi, I'm working on making the linear package standalone. The methods that perform precondition checks for matrix operations throw exceptions (See below). An option would be return a boolean instead. Obviously I would love it if CM adopts the code at some point, so I want to check whether ch

Re: [math] Refactored Precision

2015-12-14 Thread Ole Ersoy
Hi Thomas, On 12/14/2015 06:37 AM, Thomas Neidhart wrote: On Mon, Dec 14, 2015 at 9:17 AM, Ole Ersoy wrote: Hi, Just a heads up for those of you interested or have nothing better to do at 2 am :). I refactored the Precision class into classes PrecisionAssert and RoundDouble. https

[math] Refactored Precision

2015-12-14 Thread Ole Ersoy
Hi, Just a heads up for those of you interested or have nothing better to do at 2 am :). I refactored the Precision class into classes PrecisionAssert and RoundDouble. https://github.com/firefly-numbers/firefly-numbers I created a new github organization for the package, since it deals less

[math] Another Question about Precision.round()

2015-12-12 Thread Ole Ersoy
Hi, In Precision there are these two methods: [1] public static double round(double x, int scale, int roundingMethod) [2] public static float round(float x, int scale, int roundingMethod) The implementations for each are different. For [2] could users just convert float to double and use [1]

[Math] Precision.roundUnscaled BIG_DECIMAL

2015-12-12 Thread Ole Ersoy
Hi, I'm creating a new utilities module and I'm trying to decide whether to keep the below code block (Contained in the Precision.roundUnscaled() method - BTW it contains a new exception type I'm playing with - see https://github.com/firefly-math/firefly-math-exceptions if interested - the ut

Re: [math] additions to MathArrays

2015-11-24 Thread Ole Ersoy
Notes inline... On 11/24/2015 08:28 AM, Gilles wrote: On Tue, 24 Nov 2015 06:52:04 -0700, Phil Steitz wrote: I need the following methods to complete the fix for MATH-1246. I can add them as private methods to the KS class; but they seem generally useful, so I propose adding them to MathArrays

Re: [math] Version mgt idea

2015-11-16 Thread Ole Ersoy
On 11/13/2015 08:12 AM, Gilles wrote: On Mon, 9 Nov 2015 10:34:43 -0600, Ole Ersoy wrote: If I'm interested in some functionality that is 'beta' then I first have to realize that it's 'beta'...Maybe just tag the branch beta. After that there's probably

Re: [math] Smaller Packages / Artifacts / Dependencies

2015-11-09 Thread Ole Ersoy
On 11/07/2015 04:00 AM, Gilles wrote: On Fri, 6 Nov 2015 15:06:35 -0600, Ole Ersoy wrote: If math is broken up into smaller artifacts it will make it easier for users to upgrade, even if it it breaks compatibility, as well as speed up the release frequency. So for example: commons-math

Re: [math] Version mgt idea

2015-11-09 Thread Ole Ersoy
If I'm interested in some functionality that is 'beta' then I first have to realize that it's 'beta'...Maybe just tag the branch beta. After that there's probably (Judging from the number of people communicating here) 1/2 people interested. Isn't it easier for them to just just check out the b

[math] Smaller Packages / Artifacts / Dependencies

2015-11-06 Thread Ole Ersoy
If math is broken up into smaller artifacts it will make it easier for users to upgrade, even if it it breaks compatibility, as well as speed up the release frequency. So for example: commons-math-optimization (Or even more granular commons-math-optimization-lp, commons-math-optimization-ga, c

Re: Proposed Contribution to Apache Commons,

2015-09-30 Thread Ole Ersoy
Hi, On 09/30/2015 01:44 AM, Jochen Wiedmann wrote: Hi, Norman, On Tue, Sep 29, 2015 at 10:06 PM, wrote: My colleague Jeff Rothenberg and I, retirees, have developed an alternative to using regular expressions for searching for (and optionally replacing) patterns in text. Something that is

Re: [Math] Utilization of Lombok

2015-09-28 Thread Ole Ersoy
would still future proof by wrapping the solution in a Docker container when possible. Cheers, - Ole On Fri, Sep 25, 2015 at 11:47 PM, Ole Ersoy wrote: On 09/25/2015 12:55 PM, Thomas Neidhart wrote: On 09/25/2015 05:04 PM, Ole Ersoy wrote: Hi Thomas, On 09/25/2015 08:45 AM, Thomas

Re: [Math] Utilitzation of SLF4J?

2015-09-25 Thread Ole Ersoy
On 09/25/2015 03:06 PM, Phil Steitz wrote: On 9/25/15 11:01 AM, Ole Ersoy wrote: On 09/25/2015 11:34 AM, Phil Steitz wrote: I disagree. Good tests, API contracts, exception management and documentation can and should eliminate the need for cluttering low-level library code with debug

Re: [Math] Utilization of Lombok

2015-09-25 Thread Ole Ersoy
On 09/25/2015 12:55 PM, Thomas Neidhart wrote: On 09/25/2015 05:04 PM, Ole Ersoy wrote: Hi Thomas, On 09/25/2015 08:45 AM, Thomas Neidhart wrote: Hi Ole, can you explain why you think that the addition of lombok brings any benefit to our users? Sure - I'm looking a

Re: [Math] Utilitzation of SLF4J?

2015-09-25 Thread Ole Ersoy
retty sure we have all been here. Cheers, - Ole Gilles [1] No quality or complexity judgment implied. Phil Gilles Thomas On Fri, Sep 25, 2015 at 3:17 PM, Ole Ersoy wrote: Hello, We have been discussing various ways to view what's happening internally with algorithms, and the t

Re: [Math] Utilitzation of SLF4J?

2015-09-25 Thread Ole Ersoy
the result usually was: do not add logging I think for the reason that commons should not introduce transitive dependencies? This has been solved fairly well (Below). Cheers, - Ole Thomas On Fri, Sep 25, 2015 at 3:17 PM, Ole Ersoy wrote: Hello, We have been discussing various ways to v

Re: [Math] Utilization of Lombok

2015-09-25 Thread Ole Ersoy
Hi Thomas, On 09/25/2015 08:45 AM, Thomas Neidhart wrote: Hi Ole, can you explain why you think that the addition of lombok brings any benefit to our users? Sure - I'm looking at the LevenbergMarquardtOptimizer ATM, and it has the following set of parameters: /* configuration parameters

Re: [Math] LeastSquaresOptimizer Design

2015-09-25 Thread Ole Ersoy
On 09/25/2015 06:55 AM, Gilles wrote: On Thu, 24 Sep 2015 21:41:10 -0500, Ole Ersoy wrote: On 09/24/2015 06:01 PM, Gilles wrote: On Thu, 24 Sep 2015 17:02:15 -0500, Ole Ersoy wrote: On 09/24/2015 03:23 PM, Luc Maisonobe wrote: Le 24/09/2015 21:40, Ole Ersoy a écrit : Hi Luc, I gave this

[Math] Utilization of Lombok

2015-09-25 Thread Ole Ersoy
Hello, I'm going to utilize Lombok in a CM design experiment. Once the experiment is done CM can decide if it likes Lombok. I know that CM tries to stay dependency free, so I just want to make clear that Lombok is compile time only: http://stackoverflow.com/questions/6107197/how-does-lombok-w

[Math] Utilitzation of SLF4J?

2015-09-25 Thread Ole Ersoy
Hello, We have been discussing various ways to view what's happening internally with algorithms, and the topic of including SLF4J has come up. I know that this was discussed earlier and it was decided that CM is a low level dependency, therefore it should minimize the transitive dependencies

Re: [Math] LeastSquaresOptimizer Design

2015-09-24 Thread Ole Ersoy
Why should the instance throwing the exception hold a field with the information? Separation of concerns: optimizer does the computation, then the exception holds what's needed for a full report of the failure. I would see what makes sense on on case by case basis. For example if the Observer

Re: [Math] LeastSquaresOptimizer Design

2015-09-24 Thread Ole Ersoy
On 09/24/2015 06:01 PM, Gilles wrote: On Thu, 24 Sep 2015 17:02:15 -0500, Ole Ersoy wrote: On 09/24/2015 03:23 PM, Luc Maisonobe wrote: Le 24/09/2015 21:40, Ole Ersoy a écrit : Hi Luc, I gave this some more thought, and I think I may have tapped out to soon, even though you are absolutely

Re: [Math] LeastSquaresOptimizer Design

2015-09-24 Thread Ole Ersoy
On 09/24/2015 04:05 PM, Gilles wrote: On Thu, 24 Sep 2015 08:43:38 -0500, Ole Ersoy wrote: On 09/24/2015 06:31 AM, luc wrote: Le 2015-09-24 04:16, Ole Ersoy a écrit : On 09/23/2015 03:09 PM, Luc Maisonobe wrote: CM is not intended to be a design pattern people should mimic. We are so bad

  1   2   >