Commit Graph

3322 Commits

Author SHA1 Message Date
Gilles Sadowski 6f81d04ef7 Added "derivative".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1184941 13f79535-47bb-0310-9956-ffa450edef68
2011-10-16 21:49:02 +00:00
Gilles Sadowski 9092e81cae Added "derivative".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1184933 13f79535-47bb-0310-9956-ffa450edef68
2011-10-16 21:04:19 +00:00
Gilles Sadowski f258ecdf91 Added "derivative".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1183776 13f79535-47bb-0310-9956-ffa450edef68
2011-10-16 00:51:42 +00:00
Phil Steitz 2d9e88f2d6 Replaced temporary matrices / entry mutators with double[][] arrays to speed computation in loops. JIRA: MATH-612. Reported and patched by Christopher Nix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1183507 13f79535-47bb-0310-9956-ffa450edef68
2011-10-14 21:29:05 +00:00
Phil Steitz 1f21fb3fc3 Replaced temporary matrices / entry mutators with double[][] arrays to speed computation in loops. JIRA: MATH-612. Reported and patched by Christopher Nix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1183505 13f79535-47bb-0310-9956-ffa450edef68
2011-10-14 21:22:00 +00:00
Phil Steitz 868e6bdb39 Replaced temporary matrices / entry mutators with double[][] arrays to speed computation in loops. JIRA: MATH-612. Reported and patched by Christopher Nix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1183504 13f79535-47bb-0310-9956-ffa450edef68
2011-10-14 21:18:33 +00:00
Gilles Sadowski 852879bd56 Added "derivative".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1183373 13f79535-47bb-0310-9956-ffa450edef68
2011-10-14 14:50:38 +00:00
Luc Maisonobe dacfe6588c Fixed javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1183300 13f79535-47bb-0310-9956-ffa450edef68
2011-10-14 11:04:17 +00:00
Gilles Sadowski a5d473fe2f MATH-690
Removed "sign(float)" and "sign(double)" from "MathUtils"; replaced uses by
calls to "signum" in "FastMath".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1183138 13f79535-47bb-0310-9956-ffa450edef68
2011-10-13 22:21:04 +00:00
Gilles Sadowski 41c29f826d MATH-690
Removed "sinh" and "cosh" from "MathUtils"; replaced uses with calls to
equivalent in "FastMath".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1183128 13f79535-47bb-0310-9956-ffa450edef68
2011-10-13 21:58:30 +00:00
Gilles Sadowski 54364e6b57 MATH-675
Improved test implementation and increased coverage for "isMonotonic"
function.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1183119 13f79535-47bb-0310-9956-ffa450edef68
2011-10-13 21:45:39 +00:00
Sebastien Brisard 0b3440441b Renamed ArithmeticsUtils to ArithmeticUtils (MATH-689)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1182787 13f79535-47bb-0310-9956-ffa450edef68
2011-10-13 11:20:48 +00:00
Sebastien Brisard 6a5fe463ea Finished moving methods from MathUtils to ArithmeticsUtils (MATH-689)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1182658 13f79535-47bb-0310-9956-ffa450edef68
2011-10-13 05:29:28 +00:00
Sebastien Brisard d8866aedf4 Created ArithmeticsUtilsTest. Moved some tests from MathUtilsTest to ArithmeticsUtilsTest (MATH-689).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1182215 13f79535-47bb-0310-9956-ffa450edef68
2011-10-12 06:21:22 +00:00
Sebastien Brisard 6cb2b3c612 Created ArithmeticsUtils class (MATH-689), and corresponding unit tests. Moved some methods from MathUtils to ArithmeticsUtils.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1182213 13f79535-47bb-0310-9956-ffa450edef68
2011-10-12 06:17:23 +00:00
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