Commit Graph

4267 Commits

Author SHA1 Message Date
Sebastien Brisard 37f8de9542 MATH-875: deprecated sparseIterator() in the RealVector hierarchy, and replaced its use with iterator().
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1395455 13f79535-47bb-0310-9956-ffa450edef68
2012-10-08 05:54:21 +00:00
Sebastien Brisard d0e8a3587a MATH-854: FieldMatrix.setSubMatrix does *not* throw NumberIsTooSmallException.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1395453 13f79535-47bb-0310-9956-ffa450edef68
2012-10-08 05:19:50 +00:00
Sebastien Brisard 7cac883ba0 MATH-854: populated throws clause of BlockFieldMatrix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1395452 13f79535-47bb-0310-9956-ffa450edef68
2012-10-08 05:16:27 +00:00
Gilles Sadowski 3e10f8d478 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1395181 13f79535-47bb-0310-9956-ffa450edef68
2012-10-06 22:17:12 +00:00
Phil Steitz 3084dd1e4a Made file character set explicit and added file loading tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1394882 13f79535-47bb-0310-9956-ffa450edef68
2012-10-06 01:05:06 +00:00
Phil Steitz 288558e48e Removed trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1394763 13f79535-47bb-0310-9956-ffa450edef68
2012-10-05 19:54:00 +00:00
Phil Steitz 955dda0258 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1394761 13f79535-47bb-0310-9956-ffa450edef68
2012-10-05 19:52:15 +00:00
Gilles Sadowski 52990bc644 Read bound values from base class instead of duplicating the data.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1393978 13f79535-47bb-0310-9956-ffa450edef68
2012-10-04 10:25:42 +00:00
Gilles Sadowski e41cea1e33 Improved Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1393641 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 18:06:33 +00:00
Thomas Neidhart 8eb3bbaca4 Remove trailing spaces, added missing javadoc tags.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1393153 13f79535-47bb-0310-9956-ffa450edef68
2012-10-02 20:15:00 +00:00
Sebastien Brisard 3b5d0dd52c User's guide for special functions now reports accuracy of
Gamma.gamma(double).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392751 13f79535-47bb-0310-9956-ffa450edef68
2012-10-02 06:09:03 +00:00
Sebastien Brisard bb0827cc81 MATH-854: populated throws clause of Array2DRowFieldMatrix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392748 13f79535-47bb-0310-9956-ffa450edef68
2012-10-02 05:35:59 +00:00
Sebastien Brisard 72051d7f6d MATH-854: populated throws clause of AbstractFieldMatrix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392743 13f79535-47bb-0310-9956-ffa450edef68
2012-10-02 05:21:51 +00:00
Sebastien Brisard 9f663a15e6 MATH-854: populated throws clause of FieldMatrix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392742 13f79535-47bb-0310-9956-ffa450edef68
2012-10-02 05:14:38 +00:00
Sebastien Brisard d685138370 User's guide for special functions now reports accuracy of
Gamma.logGamma(double).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392739 13f79535-47bb-0310-9956-ffa450edef68
2012-10-02 05:00:41 +00:00
Phil Steitz 57b0a07b9f Final keyword.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392358 13f79535-47bb-0310-9956-ffa450edef68
2012-10-01 14:41:55 +00:00
Phil Steitz e055dcd21a Added missing throws declarations. JIRA: MATH-854.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392342 13f79535-47bb-0310-9956-ffa450edef68
2012-10-01 14:08:52 +00:00
Gilles Sadowski bb60e51654 Indentation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392028 13f79535-47bb-0310-9956-ffa450edef68
2012-09-30 14:17:12 +00:00
Luc Maisonobe df92c3b6f1 Added distance to point to 2D Line and Segment.
Patch provided by Curtis Jensen applied with minor modifications.

JIRA: MATH-641

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392022 13f79535-47bb-0310-9956-ffa450edef68
2012-09-30 13:22:28 +00:00
Gilles Sadowski 3246e42006 Update "changes.xml".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391928 13f79535-47bb-0310-9956-ffa450edef68
2012-09-30 00:14:32 +00:00
Gilles Sadowski 1ac0c79080 CheckStyle.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391927 13f79535-47bb-0310-9956-ffa450edef68
2012-09-30 00:03:30 +00:00
Gilles Sadowski bfbb156dfb MATH-867
Previous commit was missing a crucial modification (in the "repair" method),
an inconsistency which entailed the failing of some tests.
With that modification (thanks to Nikolaus Hansen), it was established that
the "encode" and "decode" steps were indeed useless. This commit thus removes
them, and all the code that was necessary only because of those two methods.
Finite and infinite can now be freely mixed.
Unit tests that depended on those limitations were also removed (thus also
the one that was added following MATH-865).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391908 13f79535-47bb-0310-9956-ffa450edef68
2012-09-29 22:18:18 +00:00
Gilles Sadowski 329cf9e8e6 MATH-867
Modified "encode" and "decode" methods. Unit test "testFitAccuracyDependsOnBoundary"
now passes and is thus enabled. Unit test "testConstrainedRosen" had to be modified
in order to not fail with the new code (starting point is set closer to the solution).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391840 13f79535-47bb-0310-9956-ffa450edef68
2012-09-29 16:58:18 +00:00
Gilles Sadowski 678377a1e8 MATH-867
Unit test showing the problem. It is disabled (with the "@Ignore" annotation)
because it fails with the current code.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391477 13f79535-47bb-0310-9956-ffa450edef68
2012-09-28 14:06:19 +00:00
Luc Maisonobe 6129654bc2 Fixed some issues in nth root derivatives at 0.
The current behavior is correct with respect to infinities and NaN being
appropriately generated, but in some cases counter-intuitive.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391451 13f79535-47bb-0310-9956-ffa450edef68
2012-09-28 13:28:42 +00:00
Sebastien Brisard e1ed0b96ba User's Guide, Special Functions: changed the introduction, as special functions
should not be considered as a by-product of Commons-Math.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391304 13f79535-47bb-0310-9956-ffa450edef68
2012-09-28 05:25:06 +00:00
Sebastien Brisard 07f51c0dea User's guide for special functions now uses the APT format, instead of the XDOC
format.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391302 13f79535-47bb-0310-9956-ffa450edef68
2012-09-28 05:14:10 +00:00
Sebastien Brisard 9462626718 MATH-854: filled the "throws" clause of BlockRealMatrix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391160 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 18:42:45 +00:00
Sebastien Brisard 2a32964f25 Populated throws clause of OpenMapRealMatrix (MATH-854).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390842 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 05:04:10 +00:00
Sebastien Brisard 8708ef28f2 MATH-870: deprecated SparseFieldMatrix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390832 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 03:54:04 +00:00
Sebastien Brisard 3a3fec3bb2 MATH-870: deprecated SparseRealMatrix and OpenMapRealMatrix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390831 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 03:52:34 +00:00
Sebastien Brisard 9cf853b3fc MATH-870: deprecated SparseFieldVector.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390829 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 03:49:54 +00:00
Sebastien Brisard b894782174 MATH-870: javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390828 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 03:48:44 +00:00
Sebastien Brisard e2bab1ae13 MATH-870: deprecated OpenMapRealVector, SparseRealVector.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390684 13f79535-47bb-0310-9956-ffa450edef68
2012-09-26 19:17:29 +00:00
Gilles Sadowski dadeacc23e MATH-853
New exception intended to become, as of release 4.0, the base class for
all CM exceptions (except "NullArgumentException").


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390354 13f79535-47bb-0310-9956-ffa450edef68
2012-09-26 09:39:19 +00:00
Sebastien Brisard 2ff6587c4e In AbstractRealMatrix, provided empty implementations to methods
- createMatrix(int, int),
  - copy(),
  - getEntry(int, int),
  - setEntry(int, int).
This allows the use of the @Override tag in classes Array2DRowRealMatrix, BlockRealMatrix,
OpenMapRealMatrix with java 5.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390302 13f79535-47bb-0310-9956-ffa450edef68
2012-09-26 07:24:35 +00:00
Thomas Neidhart 774257e3a7 Javadoc fixes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1389866 13f79535-47bb-0310-9956-ffa450edef68
2012-09-25 13:56:57 +00:00
Luc Maisonobe 282bb0eaa6 Typo.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1389858 13f79535-47bb-0310-9956-ffa450edef68
2012-09-25 13:29:16 +00:00
Phil Steitz ecd4748cdf Added tests confirming exception behavior for regress(double[]).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1389150 13f79535-47bb-0310-9956-ffa450edef68
2012-09-23 21:42:51 +00:00
Thomas Neidhart ad252a8ca3 [MATH-848] Fixed Schur transformation for certain input matrices, changed index parameter names to indicate their purpose.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1389129 13f79535-47bb-0310-9956-ffa450edef68
2012-09-23 19:34:02 +00:00
Gilles Sadowski eda482d9f9 Typo.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388766 13f79535-47bb-0310-9956-ffa450edef68
2012-09-22 10:02:53 +00:00
Gilles Sadowski f33f1fb501 MATH-860
Matrix "block inversion".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388555 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 15:41:06 +00:00
Gilles Sadowski 5144e1d878 MATH-865
Update "changes" file.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388554 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 15:34:03 +00:00
Gilles Sadowski b55e020684 MATH-865
Early detection that overflow will occur in the variables normalization
procedure ("encode" method). Warning mentioned in the documentation.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388552 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 15:32:18 +00:00
Gilles Sadowski abe53a537b MATH-864
Fixed missing "repair" of a point that lies outside the boundaries. Thanks
to Frank Hessen for the report and for pinpointing the cause of the problem.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388517 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 14:17:37 +00:00
Gilles Sadowski ce118ef14a MATH-863
Patch provided by Julien Anxionnat:
 * method name change,
 * bug fix and unit test for "dotProduct" (instance method).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388406 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 10:42:30 +00:00
Sebastien Brisard 9146a58024 In AbstractRealMatrix, removed orphan javadoc comment.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388298 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 01:56:06 +00:00
Sebastien Brisard 95bf9fb6cf In AbstractRealMatrix, removed empty abstract method copy() (specified in interface RealMatrix).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388296 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 01:53:28 +00:00
Sebastien Brisard d2258eff70 Removed some @Override tags, which have become illegal following some changes in r1388154.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388294 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 01:49:51 +00:00
Sebastien Brisard b2cea08e85 MATH-854
- filled the "throws" clause of Array2DRowRealMatrix,
  - corrected some method signatures in RealMatrix and AbstractRealMatrix accordingly,
  - in AbstractRealMatrix, removed "abstract implementations" of some methods specified in interface RealMatrix, as they serve no purpose.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388154 13f79535-47bb-0310-9956-ffa450edef68
2012-09-20 18:50:45 +00:00