Commit Graph

3483 Commits

Author SHA1 Message Date
Luc Maisonobe 13943e731b Fixed compilation errors due to recent exception changes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1179949 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 07:30:17 +00:00
Luc Maisonobe d079f625be Added checkstyle filter for declaration orders in FastMath.
FastMath uses very large tables which are located at end of class for
better readability. this is not a standard layout, but is well suited
for this case, hence we explicitly suppress checkstyle warning for these
tables.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1179948 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 07:26:26 +00:00
Luc Maisonobe 0251da64fd Added checkstyle filter for exceptional catch of RuntimeException.
These catch occur in multi-start optimizers. The exceptions are caught
and stored, and if all restarts fail, then one of the stored
RuntimeException is rethrown. The purpose of multi-start is both to
allow some trials to fail and to avoid being trapped in a local
extremum. Catching RuntimeException is therefore mandatory here, and not
dangerous since we rethrow them as needed.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1179947 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 07:25:51 +00:00
Greg Sterijevski a339a751b9 JIRA Math-630 First push of PivotingQRDecomposition
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1179935 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 05:21:17 +00:00
Phil Steitz 6f2488d31c Fixed javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1179932 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 04:07:23 +00:00
Phil Steitz db0ac031e7 Javadoc fixes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1179928 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 03:20:39 +00:00
Phil Steitz 15a1e0410a Improved javadoc, added test.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1179927 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 03:19:10 +00:00
Phil Steitz 91f737519e Javadoc fixes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1179926 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 03:18:05 +00:00
Gilles Sadowski 23da497319 MATH-683
New method "shift" to compute coefficients of a polynomial (due to R. di Costanzo).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1179671 13f79535-47bb-0310-9956-ffa450edef68
2011-10-06 15:44:41 +00:00
Sebastien Brisard 61018c7997 Modifications to the ConjugateGradient class and unit tests
- altered the way iterations are counted: Incrementor is incremented prior to any modification to the current state, so that the solver is in a consistent state (accessible residual corresponds to the last estimate of the solution), even in case of MaxCountExceededException occuring.
  - modified some tests which were not testing anything.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1179488 13f79535-47bb-0310-9956-ffa450edef68
2011-10-06 02:14:20 +00:00
Luc Maisonobe 8fcbe82ab6 Fixed test changed by former exceptions modifications.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178808 13f79535-47bb-0310-9956-ffa450edef68
2011-10-04 14:14:28 +00:00
Luc Maisonobe e777a24d2b Fixed overzealous replacement of equations by expandable ...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178807 13f79535-47bb-0310-9956-ffa450edef68
2011-10-04 14:14:15 +00:00
Luc Maisonobe 2dbc66e4fd Replaced obsolete exceptions.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178806 13f79535-47bb-0310-9956-ffa450edef68
2011-10-04 14:14:02 +00:00
Luc Maisonobe c733f8c422 Fixed missing generics.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178805 13f79535-47bb-0310-9956-ffa450edef68
2011-10-04 14:13:46 +00:00
Sebastien Brisard 309dd689eb Added method multiply(int) to FieldElement, and updated implementing classes and tests accordingly. Solves MATH-684.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178715 13f79535-47bb-0310-9956-ffa450edef68
2011-10-04 08:12:05 +00:00
Sebastien Brisard 2898bc6403 Translated error messages for IllConditionedOperatorException and SingularOperatorException into french.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178328 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 08:13:08 +00:00
Sebastien Brisard 1d0479bfb3 - Replaced LinearOperator with Operator in exception names in order to make them shorter (as discussed on the ML).
- Created IllConditionedOperatorException.
- Created SingularOperatorException (as discussed on the ML).

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178306 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 06:33:21 +00:00
Phil Steitz 2568420bf6 Eliminated MathException from distribution interfaces and impls.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178295 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 04:36:27 +00:00
Phil Steitz 0cf21a482b Removed trailing space.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178293 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 04:19:48 +00:00
Phil Steitz 63febb4f93 Added constructor taking a localized message.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178287 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 02:54:07 +00:00
Luc Maisonobe 3ae07f34ab Fixed about 90 checkstyle errors.
The errors were mainly trailing blanks, missing javadoc, wrong javadoc
parameters, hidden variables ...

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178235 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 19:43:17 +00:00
Luc Maisonobe 76b57cddf3 Removed unused exception.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178234 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 19:41:48 +00:00
Phil Steitz 2059461aff Replaced obsolete exceptions.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178223 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 19:03:49 +00:00
Phil Steitz 9f0e8ef283 Replaced obsolete exceptions.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178213 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 18:20:18 +00:00
Phil Steitz 05cdc9f273 Replaced obsolete exceptions.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178211 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 18:10:03 +00:00
Phil Steitz 48f14e7769 Replaced obsolete exception.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178202 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 16:20:04 +00:00
Phil Steitz 4b6960624a Fixed javadoc typos.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178198 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 15:47:39 +00:00
Phil Steitz 21bebf28fd Fixed javadoc typos.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178197 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 15:43:11 +00:00
Luc Maisonobe 1e1a7cd40b Added a cache file for checkstyle TreeWalker.
Using maven chekstyle plugin up to version 2.7, this property is not set
by default and should be set explicitely in the checkstyle configuration
file to prevent the report generation from failing.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178196 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 15:25:20 +00:00
Luc Maisonobe 7c81ac50a2 Replaced obsolete exceptions.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178195 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 15:05:26 +00:00
Gilles Sadowski a08f9179d3 MATH-676
Faster "multiply" method.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178186 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 13:00:41 +00:00
Luc Maisonobe b8b4338994 Fixed javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178173 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 10:18:14 +00:00
Luc Maisonobe cea840d31b Fixed javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178172 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 10:11:43 +00:00
Luc Maisonobe 166cdbb4e2 Fixed javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178171 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 10:10:50 +00:00
Luc Maisonobe 005b83d0eb Fixed javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178170 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 10:10:12 +00:00
Luc Maisonobe 2d0bacedae Switched to checkstyle 5.x, so we can use package-info.java.
JIRA: MATH-445

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178168 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 09:58:38 +00:00
Luc Maisonobe 121638c7c2 fixed missing space in package-info.java due to a script error
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178163 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 09:25:27 +00:00
Luc Maisonobe d9964d8cbe Replaced deprecated exceptions.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178082 13f79535-47bb-0310-9956-ffa450edef68
2011-10-01 20:01:22 +00:00
Luc Maisonobe c60cba2ec3 Replaced obsolete exception.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178081 13f79535-47bb-0310-9956-ffa450edef68
2011-10-01 19:49:51 +00:00
Luc Maisonobe 799b4d6176 Fixed javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178080 13f79535-47bb-0310-9956-ffa450edef68
2011-10-01 19:49:26 +00:00
Luc Maisonobe 0be9aee882 Replaced obsolete exception.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178077 13f79535-47bb-0310-9956-ffa450edef68
2011-10-01 19:44:52 +00:00
Luc Maisonobe c33f43b0fa Fixed javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178076 13f79535-47bb-0310-9956-ffa450edef68
2011-10-01 19:41:34 +00:00
Sebastien Brisard 1824dd31e6 Some changes to the interface of iterative linear solvers. Replaced the confusing boolean param inPlace in the solve() methods by two sets of methods: solve() and solveInPlace().
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178073 13f79535-47bb-0310-9956-ffa450edef68
2011-10-01 19:09:00 +00:00
Sebastien Brisard bbe44629cc Added @since tag
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178072 13f79535-47bb-0310-9956-ffa450edef68
2011-10-01 19:06:52 +00:00
Sebastien Brisard 82ca8bca63 Removed method double[] solve(double[]), because double[] is no longer considered as equivalent to RealVector (use ArrayRealVector instead).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178071 13f79535-47bb-0310-9956-ffa450edef68
2011-10-01 19:05:11 +00:00
Luc Maisonobe e364018316 Replaced package.html with package-info.java for package documentation.
JIRA: MATH-445

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178067 13f79535-47bb-0310-9956-ffa450edef68
2011-10-01 18:51:25 +00:00
Gilles Sadowski add2d54457 Added deprecation tag.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178040 13f79535-47bb-0310-9956-ffa450edef68
2011-10-01 16:23:48 +00:00
Luc Maisonobe 7ec522753a Added a getRuntimeClass method to the Field interface.
This interface allows using a complete hierarchy of fields sharing a
common interface.

JIRA: MATH-284

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178009 13f79535-47bb-0310-9956-ffa450edef68
2011-10-01 15:15:00 +00:00
Luc Maisonobe 78d9deeadc Replaced last remaining uses of OptimizationException.
the replacement exceptions are unchecked ones: UnboundSolutionException,
NoFeasibleSolutionException, MaxCountExceededException ...

JIRA: MATH-457

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178006 13f79535-47bb-0310-9956-ffa450edef68
2011-10-01 14:52:21 +00:00
Luc Maisonobe 036ba4efec Replaced checked ConvergenceException with an unchecked version.
JIRA: MATH-487

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1177986 13f79535-47bb-0310-9956-ffa450edef68
2011-10-01 14:16:50 +00:00