3400 Commits

Author SHA1 Message Date
Gilles Sadowski
a4d48af48a More detailed message for "NonPositiveDefiniteMatrixException".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166674 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 13:13:16 +00:00
Gilles Sadowski
6b9cf3c1ec MATH-566
Removed "MathThrowable".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166646 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 12:08:16 +00:00
Gilles Sadowski
7de255581c Wrong message.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166639 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 11:52:54 +00:00
Gilles Sadowski
23df2f536f MATH-663
Removed "getData" method in "RealVector"; replaced calls with "toArray()".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166629 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 11:15:02 +00:00
Gilles Sadowski
1607b9c7ed Wrong place-holder.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166594 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 09:56:24 +00:00
Sebastien Brisard
c004c9daea Removed call to double[][] solve(double[][]) from initializeHighOrderDerivatives.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166533 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 05:59:22 +00:00
Sebastien Brisard
5ec76b26fa Removed call to double[][] solve(double[][]) from interface DecompositionSolver.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166516 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 03:24:28 +00:00
Sebastien Brisard
102473af94 Removed call to double[][] solve(double[][]) from interface DecompositionSolver.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166515 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 03:24:04 +00:00
Sebastien Brisard
0eac3c014c Removed call to double[][] solve(double[][]) from interface DecompositionSolver.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166514 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 03:23:44 +00:00
Sebastien Brisard
0cf42e9ae0 Removed call to double[][] solve(double[][]) from interface DecompositionSolver.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166513 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 03:23:19 +00:00
Sebastien Brisard
a2f25ddb6e Removed call to double[][] solve(double[][]) from interface DecompositionSolver.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166512 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 03:22:50 +00:00
Sebastian Bazley
aeb0f8329e MATH 650 FastMath has static code which slows the first access to FastMath
Enclose each large data table in nested static class so it's only loaded on first access


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166437 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 22:05:06 +00:00
Luc Maisonobe
4107ac1db8 Removed completely MathUserException.
JIRA: MATH-195

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166311 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 18:48:06 +00:00
Gilles Sadowski
22072e0060 Added "final".
Moved declaration of "sum" where it is used.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166099 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 10:34:49 +00:00
Sebastian Bazley
687cc21cb4 More docn of algorithms and magic numbers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165929 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 23:33:54 +00:00
Sebastian Bazley
0fcbaec47a Document some magic numbers; trailing spaces; other doc tweaks
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165903 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 22:17:21 +00:00
Sebastian Bazley
a1dd05b8c8 MATH 650 FastMath has static code which slows the first access to FastMath
First pass - convert runtime init to preset initialisers

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165846 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 21:06:58 +00:00
Luc Maisonobe
0f0e1abde9 removed MathUserException from linear package
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165822 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 20:19:37 +00:00
Luc Maisonobe
e1836fd8ac removed MathUserException from DFP package
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165821 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 20:18:42 +00:00
Luc Maisonobe
1490873b33 added documentation about error handling in user functions in the userguide
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165810 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 20:01:07 +00:00
Luc Maisonobe
6968a4afd6 removed MathUserException from analysis package
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165809 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 20:00:37 +00:00
Luc Maisonobe
78d1a613d4 removed MathUserException from transform package
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165808 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 19:59:47 +00:00
Luc Maisonobe
1de3d116a9 removed MathUserException from ODE package
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165792 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 19:17:52 +00:00
Luc Maisonobe
e751cc22b6 Removed last use of MaxEvaluationsExceededException.
This exception was now used only in ODE. It has been replaced by
MaxCountExceededException, triggered by an Incrementor instance just as
what is done in root solvers.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165790 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 19:16:05 +00:00
Gilles Sadowski
67480f06e8 MATH-621
Bug (in an unexplored code path); fixing by comparison with original code.
Added exception to track unexplored path.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165656 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 13:05:55 +00:00
Sebastien Brisard
13baf52944 Fixed a Checkstyle complaint.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165510 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 06:38:43 +00:00
Sebastien Brisard
ca460b7c22 Removed double[] solve(double[]) from SingularValueDecompositionImpl.Solver
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165508 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 06:24:11 +00:00
Sebastien Brisard
7471813924 Removed double[] solve(double[]) from QRDecompositionImpl.Solver
Had to implement toArray() in ArrayRealVectorTest to make QRSolverTest pass.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165507 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 06:23:06 +00:00
Sebastien Brisard
86ae5a8c90 Removed double[] solve(double[]) from LUDecompositionImpl.Solver
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165506 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 06:20:31 +00:00
Sebastien Brisard
d4834d0d57 Removed double[] solve(double[]) from EigenDecompositionImpl.Solver
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165505 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 06:17:38 +00:00
Gilles Sadowski
3998594624 Wrote 1e-11 instead of 10E-12 (which was probably a typo).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165416 13f79535-47bb-0310-9956-ffa450edef68
2011-09-05 21:22:46 +00:00
Gilles Sadowski
bf4184310d Added a test.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165296 13f79535-47bb-0310-9956-ffa450edef68
2011-09-05 14:20:16 +00:00
Gilles Sadowski
701da0456a Separating test cases.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165287 13f79535-47bb-0310-9956-ffa450edef68
2011-09-05 14:04:16 +00:00
Sebastien Brisard
b919c5ed1f Removed sole(double[]) from the DecompositionSolver interface (see JIRA MATH-653).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165188 13f79535-47bb-0310-9956-ffa450edef68
2011-09-05 07:07:55 +00:00
Sebastien Brisard
5cfa8ccf09 In CholeskyDecompositionImpl.Solver
- removed solve(double[]) according to JIRA MATH-653
  - removed solve(ArrayRealVector) because it entails no performance gain over the general solve(RealVector)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165155 13f79535-47bb-0310-9956-ffa450edef68
2011-09-05 03:30:22 +00:00
Sebastian Bazley
e39a389555 Ensure Ant build behaves the same as Maven for component resources
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165147 13f79535-47bb-0310-9956-ffa450edef68
2011-09-05 02:09:14 +00:00
Luc Maisonobe
d696293435 moved the binding of the underlying exception from ExceptionContextProvider to ExceptionContext, as diccussed on the dev list
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165034 13f79535-47bb-0310-9956-ffa450edef68
2011-09-04 14:38:40 +00:00
Luc Maisonobe
f4abfdc106 removed MathUserException from StepHandler interface
JIRA: MATH-488

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165033 13f79535-47bb-0310-9956-ffa450edef68
2011-09-04 14:36:48 +00:00
Sebastian Bazley
5c04a9d456 Fix up resource section to standard setting
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1164998 13f79535-47bb-0310-9956-ffa450edef68
2011-09-04 11:55:49 +00:00
Sebastian Bazley
e79fcea6cf Report missing resource rather than failing with NPE if not fount
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1164986 13f79535-47bb-0310-9956-ffa450edef68
2011-09-04 10:29:03 +00:00
Phil Steitz
7dabaab113 Completed reversion of r1164756 changes (for now).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1164923 13f79535-47bb-0310-9956-ffa450edef68
2011-09-03 20:06:24 +00:00
Gilles Sadowski
97b440fc8e MATH-657
Reverting to previous behaviour, as requested by P. Steitz.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1164917 13f79535-47bb-0310-9956-ffa450edef68
2011-09-03 19:22:42 +00:00
Gilles Sadowski
32b0f7336b MATH-657
Complex division by zero:
 z / 0 = INF if z is not ZERO
 0 / 0 = NaN


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1164756 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 23:05:01 +00:00
Sebastien Brisard
6a895ec220 Simplification of the conversion from RealVector to double[].
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1164662 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 18:20:37 +00:00
Sebastien Brisard
de75806149 In all unit-tests of DecompositionSolver implementations: removed calls to DecompositionSolver.solve(double[]) (MATH-653)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1164622 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 16:46:20 +00:00
Sebastien Brisard
118387e272 Units tests of RealMatrix implementations: replaced reference to DecompositionSolver.solve(double[]) by DecompositionSolver.solve(RealVector) (see MATH-653)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1164618 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 16:40:18 +00:00
Sebastien Brisard
c76d918c77 Replaced reference to DecompositionSolver.solve(double[]) by DecompositionSolver.solve(RealVector) (see MATH-653)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1164615 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 16:34:41 +00:00
Luc Maisonobe
c9943deeb9 Use the refactored exceptions framework for ODE.
The IntegratorException and EvenException classes have been removed. The
uses of the checked ConvergenceException have been replaced by the
unchecked one from the exception package. Sanity checks now use
the nes DimensionMismatchException. Step size underflows now trigger
NumberIsTooSmallException.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1164573 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 15:11:31 +00:00
Luc Maisonobe
8b24302b3d Added a getter to allow retrieving the exception related to an
exception context provider.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1164570 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 15:07:16 +00:00
Gilles Sadowski
c0b4954297 MATH-631
Early detection of "Regula Falsi" algorithm being stuck due to finite
precision.
Javadoc makes it clear that either the Pegasus or the Illinois solver should
be preferred over the Regula Falsi one (due to D. Hendriks).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1164474 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 11:09:59 +00:00