3307 Commits

Author SHA1 Message Date
Gilles Sadowski
d092e09531 MATH-689
Moved array utilities from "MathUtils" to "MathArrays".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1182147 13f79535-47bb-0310-9956-ffa450edef68
2011-10-11 23:37:57 +00:00
Gilles Sadowski
d64c7a3bfb MATH-689
Moved array utilities from "MathUtils" to "MathArrays".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1182137 13f79535-47bb-0310-9956-ffa450edef68
2011-10-11 23:10:46 +00:00
Gilles Sadowski
63a3a9d080 MATH-689
Moved arrays utilities from "MathUtils" to "MathArrays".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1182134 13f79535-47bb-0310-9956-ffa450edef68
2011-10-11 22:55:08 +00:00
Gilles Sadowski
519e4d2e7f MATH-689
Moved "equals..." and "compareTo" methods from "MathUtils" over to a new
"Precision" class.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1181282 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 22:35:54 +00:00
Gilles Sadowski
015f45e2fd Lowered access level.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1181245 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 21:20:30 +00:00
Luc Maisonobe
5e6389761c Fixed an integer overflow in OpenMapRealMatrix.
JIRA: MATH-679

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1181181 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 19:56:03 +00:00
Gilles Sadowski
004b8958d7 MATH-688
Replaced fractions with contant fields.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1181175 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 19:50:53 +00:00
Sebastian Bazley
3a63eea7d4 Recover table Javadoc lost when tables extrtacted from FastMath source file
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1180764 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 02:33:30 +00:00
Gilles Sadowski
60657ea039 Lowered access level.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1180646 13f79535-47bb-0310-9956-ffa450edef68
2011-10-09 16:40:33 +00:00
Gilles Sadowski
848dfc6f31 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1180642 13f79535-47bb-0310-9956-ffa450edef68
2011-10-09 16:30:28 +00:00
Gilles Sadowski
a7fea11074 Javadoc link to reference.
Remark on numerical accuracy added as code comment.
Added unit tests.
Added normalized sinc function.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1180588 13f79535-47bb-0310-9956-ffa450edef68
2011-10-09 12:04:40 +00:00
Phil Steitz
394a367edc Fixed javadoc typos.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1180381 13f79535-47bb-0310-9956-ffa450edef68
2011-10-08 14:25:58 +00:00
Phil Steitz
d9ca459114 Fixed javadoc typos.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1180316 13f79535-47bb-0310-9956-ffa450edef68
2011-10-08 05:23:06 +00:00
Phil Steitz
8c1df65ae6 Simplified javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1180315 13f79535-47bb-0310-9956-ffa450edef68
2011-10-08 05:13:16 +00:00
Phil Steitz
1ae0c80950 Fixed null handling in varargs for sortInPlace, improved javadoc, addeed tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1180314 13f79535-47bb-0310-9956-ffa450edef68
2011-10-08 05:03:54 +00:00
Sebastien Brisard
bce28db653 Fixed trailing whitespace.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1180313 13f79535-47bb-0310-9956-ffa450edef68
2011-10-08 04:37:54 +00:00
Sebastien Brisard
76f7373367 Added FieldElement.negate() and FieldElement.reciprocal() (MATH-686).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1180312 13f79535-47bb-0310-9956-ffa450edef68
2011-10-08 04:21:00 +00:00
Gilles Sadowski
d0633b818e MATH-650
Large literal arrays factored out of "FastMath".
Slight efficiency improvement of "resource" alternative.
Output result in "FastMathLoadCheck".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1180294 13f79535-47bb-0310-9956-ffa450edef68
2011-10-08 02:02:07 +00:00
Gilles Sadowski
0eee4b6f14 Layout and doc minor fixes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1180232 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 20:54:06 +00:00
Luc Maisonobe
92743c883b Added forgotten equals method for the hash table elements.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1180097 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 16:44:18 +00:00
Luc Maisonobe
461c45aa7d Added Jacobi orthogonal polynomials.
JIRA: MATH-687

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1180092 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 16:31:04 +00:00
Luc Maisonobe
ca133d8940 Added orthogonality tests for special polynomials.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1180055 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 14:34:45 +00:00
Luc Maisonobe
732f83c0b5 Fixed exception type
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1179951 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 07:33:21 +00:00
Luc Maisonobe
487eaeecfc Removed unused import.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1179950 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 07:32:54 +00:00
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