Commit Graph

3284 Commits

Author SHA1 Message Date
Sebastian Bazley 69b7b985da Nested inline tags are not allowed
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1150380 13f79535-47bb-0310-9956-ffa450edef68
2011-07-24 14:28:50 +00:00
Sebastian Bazley a95b0def8c Nested inline tags are not allowed
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1150379 13f79535-47bb-0310-9956-ffa450edef68
2011-07-24 14:27:20 +00:00
Sebastian Bazley 3335529258 Java 1.5 does not allow @Override for method implementations, only true overrides
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1150378 13f79535-47bb-0310-9956-ffa450edef68
2011-07-24 14:24:11 +00:00
Gilles Sadowski b29fc9645a MATH-577
Various enhancements to the "Complex" class, namely operators (add,
subtract, ...) taking a "double" argument, improved consistency in
the use of "NAN" and "INF" fields, updated Javadoc. Mainly due to
Arne Plöse.



git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1150340 13f79535-47bb-0310-9956-ffa450edef68
2011-07-24 11:21:55 +00:00
Gilles Sadowski e99ab8489c Copy/paste bug.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1150089 13f79535-47bb-0310-9956-ffa450edef68
2011-07-23 12:09:26 +00:00
Gilles Sadowski b05a3cdbae MATH-629
Direct call to the overloaded method that actually implements the
functionality.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1149756 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 22:51:37 +00:00
Gilles Sadowski c4ed11aba2 MATH-623
Slightly more efficient implementation of some methods (due to Arne Plöse).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1149405 13f79535-47bb-0310-9956-ffa450edef68
2011-07-21 23:17:52 +00:00
Phil Steitz 6414ab061b Eliminated console output from tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1149363 13f79535-47bb-0310-9956-ffa450edef68
2011-07-21 21:06:43 +00:00
Mikkel Meyer Andersen cffa97186e Added element for MATH-585
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1149353 13f79535-47bb-0310-9956-ffa450edef68
2011-07-21 20:43:21 +00:00
Mikkel Meyer Andersen b44d8ee8c8 Added fix for MATH-585: Implemented faster generation of random gamma variates using Ahrens and Dieter (1974) and Marsaglia and Tsang (2001). Test case was improved, too.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1149350 13f79535-47bb-0310-9956-ffa450edef68
2011-07-21 20:37:35 +00:00
Phil Steitz 47043fea65 Missing javadoc, extracting literals (will be removed in subsequent refactoring). JIRA: MATH-607
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1149335 13f79535-47bb-0310-9956-ffa450edef68
2011-07-21 19:47:10 +00:00
Phil Steitz d13bdc025a Javadoc, remove trailing spaces. JIRA: MATH-607.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1149281 13f79535-47bb-0310-9956-ffa450edef68
2011-07-21 17:56:05 +00:00
Sebastian Bazley 67237993b4 Copy all test resources to agree with Maven behaviour
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1149244 13f79535-47bb-0310-9956-ffa450edef68
2011-07-21 16:04:21 +00:00
Gilles Sadowski 7133fb43b7 MATH-623
Slightly faster "add" method (due to Arne Plöse).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1148952 13f79535-47bb-0310-9956-ffa450edef68
2011-07-20 22:09:17 +00:00
Luc Maisonobe 0d0c461e6e Allow discrete events to be detected by ODE solvers also at step start.
JIRA: MATH-605

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1148736 13f79535-47bb-0310-9956-ffa450edef68
2011-07-20 12:47:11 +00:00
Luc Maisonobe 262fe4c088 Rewritten SVD implementation based on JAMA code.
JIRA: MATH-327, MATH-383, MATH-465, MATH-583, MATH-611

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1148714 13f79535-47bb-0310-9956-ffa450edef68
2011-07-20 12:15:00 +00:00
Luc Maisonobe 97b54ad87f removed Java 6 specific method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1148709 13f79535-47bb-0310-9956-ffa450edef68
2011-07-20 11:35:48 +00:00
Luc Maisonobe 9ac9921796 fixed typo on bracket type for divided differences
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1148685 13f79535-47bb-0310-9956-ffa450edef68
2011-07-20 10:24:15 +00:00
Phil Steitz 2d590e38b3 Added Miller updating regression implementation. JIRA: MATH-607. Contributed by Greg Sterijevski.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1148557 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 21:44:41 +00:00
Gilles Sadowski 175bad6352 MATH-622
Reverted to the previous default: Many tests depend on having 2 fractional
digits.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1148385 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 15:06:46 +00:00
Gilles Sadowski 79bff2247f MATH-622
Increased the number of digits to output.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1148312 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 13:33:29 +00:00
Luc Maisonobe c8027556c1 added forgotten delegating method from context
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1147778 13f79535-47bb-0310-9956-ffa450edef68
2011-07-18 08:33:53 +00:00
Gilles Sadowski 1e649ff9f3 MATH-581
Made accessors "abstract" (a per the conclusion of the thread
"RealLinearOperator and AbstractRealMatrix" on the dev ML).
Removed constructors.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1147081 13f79535-47bb-0310-9956-ffa450edef68
2011-07-15 10:46:29 +00:00
Gilles Sadowski 03f66650d3 MATH-617
Make "1 + 1i" appear as "1 + i" on formatted output.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1146755 13f79535-47bb-0310-9956-ffa450edef68
2011-07-14 15:25:11 +00:00
Phil Steitz b8ed51d4a0 Added casts to prevent integer division. JIRA: MATH-619
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1146575 13f79535-47bb-0310-9956-ffa450edef68
2011-07-14 06:12:42 +00:00
Phil Steitz 2123f7805b Fixed add method to match javadoc contract when one or both addends has NaN parts.
JIRA: MATH-618
Reported by Arne Plose

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1146573 13f79535-47bb-0310-9956-ffa450edef68
2011-07-14 06:08:05 +00:00
Phil Steitz fe761c28ce Fixed javadoc typo.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1146561 13f79535-47bb-0310-9956-ffa450edef68
2011-07-14 05:32:41 +00:00
Phil Steitz efb876b984 Added tests based on NIST certified data ("Wampler").
JIRA: MATH-616
Contributed by Greg Sterijevski

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1146147 13f79535-47bb-0310-9956-ffa450edef68
2011-07-13 17:27:41 +00:00
Gilles Sadowski 9af50ca82c MATH-566
Removed unused "MathRuntimeException".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1146099 13f79535-47bb-0310-9956-ffa450edef68
2011-07-13 15:28:21 +00:00
Gilles Sadowski d171e7dd17 MATH-577
Replaced function calls by direct reference to the instance variable.
Removed redundant prefix for static fields.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1145945 13f79535-47bb-0310-9956-ffa450edef68
2011-07-13 10:10:56 +00:00
Gilles Sadowski 29db2a8953 MATH-614
Added "toString" method.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1145932 13f79535-47bb-0310-9956-ffa450edef68
2011-07-13 09:41:49 +00:00
Gilles Sadowski bf05f11de3 MATH-581
Framework for iterative solvers.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1145779 13f79535-47bb-0310-9956-ffa450edef68
2011-07-12 21:34:34 +00:00
Phil Steitz 85cb7a8d48 Removed unecessary parens around return value. JIRA: MATH-609.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1145746 13f79535-47bb-0310-9956-ffa450edef68
2011-07-12 20:15:01 +00:00
Phil Steitz fecbf23419 Updated patch. Fixed variable reference error. JIRA: MATH-607
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1145743 13f79535-47bb-0310-9956-ffa450edef68
2011-07-12 19:57:17 +00:00
Gilles Sadowski a31a5e8451 MATH-581
Framework for iterative linear solvers.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1145559 13f79535-47bb-0310-9956-ffa450edef68
2011-07-12 11:55:26 +00:00
Gilles Sadowski 099fdba075 MATH-599 (part of the patch provided by D. Hendriks on JIRA, issue MATH-605).
Improved Javadoc.
Allow a bracketing interval to contain the root at its end-points.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1145146 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 12:32:14 +00:00
Gilles Sadowski 3df5cf363e Using "copyOf" from "MathUtils".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1145101 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 10:01:39 +00:00
Phil Steitz ce13d98d2e Added a couple of new contributors.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1145007 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 01:32:31 +00:00
Phil Steitz 4d02be2855 Improved efficiency in RandomDataImpl, LaguerreSolver, FastMath and
OutlineExtractor by moving conditional code into blocks where it is needed.

JIRA: MATH-609
Reported and patched by Dave Brosius

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1145004 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 01:14:55 +00:00
Phil Steitz 82880daefb Removed trailing space.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144997 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 00:57:03 +00:00
Phil Steitz fb8fcf184e Moved conditional code into block where it is needed. JIRA: MATH-609.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144996 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 00:55:38 +00:00
Phil Steitz abb29ca5c3 Restored jdk 1.5 compat.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144994 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 00:52:20 +00:00
Phil Steitz d3d5c6fb05 Added interface and reporting class for updating regression. JIRA: MATH-607. Contributed by Greg Sterijevski.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144986 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 23:45:43 +00:00
Luc Maisonobe 60f99d976d Prevent step normalizer to output twice the last point in MULTIPLES mode.
JIRA: MATH-603

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144902 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 16:51:02 +00:00
Luc Maisonobe 4b299469ed updated tests threshold as events are now forced on some root sides
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144892 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 16:08:50 +00:00
Luc Maisonobe ddd7f07939 increased max evaluation count to allow root bracketing post-processing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144890 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 16:06:44 +00:00
Luc Maisonobe c65e8fdd4e use root bracketing to find events on the appropriate side according to integration direction
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144889 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 16:05:39 +00:00
Luc Maisonobe f31af98c0d prevent root bracketing to be attempted outside of search interval
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144887 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 16:04:51 +00:00
Luc Maisonobe fef1366f09 added constructors with function value accuracy
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144861 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 13:48:36 +00:00
Luc Maisonobe 9867b821b7 fixed checkstyle warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144838 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 11:28:31 +00:00