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

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

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

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

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.

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: [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

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

[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:

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

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

[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:

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

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

[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

[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 =

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.

Re: [math] Name of the new TLP

2016-01-25 Thread Ole Ersoy
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 <ole.er...@gmail.com>: Umbrella-ish is good. Linear algebra, genetic algorithms, neural networks, clustering, monte carlo, simplex...These need an um

Re: [math] Name of the new TLP

2016-01-25 Thread Ole Ersoy
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 Ersoy wrote: Umbrella-ish is good

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,

Re: [math] Name of the new TLP

2016-01-25 Thread Ole Ersoy
encourage you to also provide an all-in-one jar. Gary On Jan 25, 2016 4:22 PM, "Ole Ersoy" <ole.er...@gmail.com> 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

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

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

[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 <ole.er...@gmail.com> 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.

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 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: public double getLInfNorm() { double

[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] Should this throw a NO_DATA exception?

2016-01-08 Thread Ole Ersoy
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()) { final Entry e

[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

Re: [math] Java 8 RealVector Functional Design

2016-01-05 Thread Ole Ersoy
good 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] 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.

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

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" <ole.er...@gmail.com>: 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

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 <ole.er...@gmail.com> 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.r

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

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

[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] 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,

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

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

[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

[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

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 >

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

[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

[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.

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

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

[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] 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

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 should

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.

[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-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,

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] 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.

[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.

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

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

[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/

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 <

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

[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,

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

[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):

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

[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

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 precondition

[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

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 <ole.er...@gmail.com> 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 Precision

[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

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

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 (Judging from the number of people

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

[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,

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.

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 <ole.er...@gmail.com> 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/2

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] Utilitzation of SLF4J?

2015-09-25 Thread Ole Ersoy
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 <ole.er...@gmail.com> wrote: Hello, We have been discussing v

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

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

Re: [Math] Utilitzation of SLF4J?

2015-09-25 Thread Ole Ersoy
ality or complexity judgment implied. Phil Gilles Thomas On Fri, Sep 25, 2015 at 3:17 PM, Ole Ersoy <ole.er...@gmail.com> wrote: Hello, We have been discussing various ways to view what's happening internally with algorithms, and the topic of including SLF4J has come

[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

[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:

Re: [Math] LeastSquaresOptimizer Design

2015-09-24 Thread Ole Ersoy
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 at this it would be a shame. No one in its right mind would copy or reuse this stuff

Re: [Math] LeastSquaresOptimizer Design

2015-09-24 Thread Ole Ersoy
: Le 23/09/2015 19:20, Ole Ersoy a écrit : HI Luc, Hi Ole, On 09/23/2015 03:02 AM, luc wrote: Hi, Le 2015-09-22 02:55, Ole Ersoy a écrit : Hola, On 09/21/2015 04:15 PM, Gilles wrote: Hi. On Sun, 20 Sep 2015 15:04:08 -0500, Ole Ersoy wrote: On 09/20/2015 05:51 AM, Gilles wrote: On Sun, 20

Re: [Math] LeastSquaresOptimizer Design

2015-09-24 Thread Ole Ersoy
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 right about what an exception does in terms bubbling execution to a point where it stops

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

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

  1   2   >