Commit Graph

1533 Commits

Author SHA1 Message Date
Luc Maisonobe e01294b158 Failed attempt to implement Strassen matrix multiplication on recursive layout as
described in Siddhartha Chatterjee, Alvin R. Lebeck, Praveen K. Patnala and Mithuna
Thottehodi paper "Recursive Array Layout and Fast Matrix Multiplication".

As of 2009-02-13, this implementation does not work! The padding at left and bottom
sides of the matrix should be cleared after some operations like scalerAdd and is not.
Also there is a limitation in the multiplication that can only process matrices with
sizes similar enough to have the same power of two number of tiles in all three
matrices A, B and C such that C = A*B. These parts have not been fixed since the
performance gain with respect to DenseRealMatrix are not very important, and the
numerical stability is poor.

This may well be due to a bad implementation.

This code has been put in the experimental directory for the record, putting it into
production would require solving all these issues.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@744126 13f79535-47bb-0310-9956-ffa450edef68
2009-02-13 14:38:48 +00:00
Phil Steitz 42b68a69ce Added correlation package, Covariance class. JIRA: MATH-114
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@743688 13f79535-47bb-0310-9956-ffa450edef68
2009-02-12 11:21:54 +00:00
William Barker 01f82aed42 remove eclipse generated equals since it doesn't work. Will add a working equals later
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@742837 13f79535-47bb-0310-9956-ffa450edef68
2009-02-10 03:02:38 +00:00
William Barker 01ff509885 Fis some problems with equals for OpenInttoDoubleHashmap.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@742445 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 12:41:20 +00:00
William Barker 7d4f6893f9 Mostly completing the methods that don't make sense if using a sparse vector in the first place. Initial implementations for equals on the backing store, but it seems it will need more work (since still have to comment out junit tests).
Making  checkVectorDimensions protected instead of public on all RealVector classes.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@742257 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 04:50:27 +00:00
Phil Steitz d22f9559e1 Exposed sums of squares.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@742145 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 19:30:09 +00:00
Phil Steitz 2f227a6314 Moved matrix equality tests to TestUtils.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@742120 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 15:26:09 +00:00
Luc Maisonobe 94fcce51cd improved consistency between RealVector and RealMatrix API
JIRA: MATH-245

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@740744 13f79535-47bb-0310-9956-ffa450edef68
2009-02-04 13:59:50 +00:00
Luc Maisonobe 304ae29268 applied Cyril Briquet's patch (with slight changes) to improve FastFourierTransform efficiency
JIRA: MATH-216

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@740400 13f79535-47bb-0310-9956-ffa450edef68
2009-02-03 19:59:20 +00:00
Luc Maisonobe aa0dd1db20 javadoc typo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@739957 13f79535-47bb-0310-9956-ffa450edef68
2009-02-02 10:30:20 +00:00
William Barker 392f5ccdd3 revert accedental work-in-progress commit
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@739910 13f79535-47bb-0310-9956-ffa450edef68
2009-02-02 02:50:53 +00:00
William Barker e7a7d91384 property sets
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@739909 13f79535-47bb-0310-9956-ffa450edef68
2009-02-02 02:42:48 +00:00
William Barker 117175bc83 property sets mostly, some broken method fixes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@739908 13f79535-47bb-0310-9956-ffa450edef68
2009-02-02 02:40:27 +00:00
Luc Maisonobe 8ce2128585 added a PolynomialsUtils class providing factory methods for
Chebyshev, Hermite, Laguerre and Legendre polynomials
the code was extracted from mantissa and modified

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@739840 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 21:13:55 +00:00
Luc Maisonobe 6a965532e6 fixed an error introduced by a recent change in PolynomialsFunction
(the coefficients array is automatically reduced if high degree coefficients are null)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@739836 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 21:06:55 +00:00
Luc Maisonobe adc64fb8cf Added add, subtract, negate, multiply and toString methods to PolynomialFunction
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@739834 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 20:56:12 +00:00
William Barker e8bb7ce937 Adding constructors that allow specifing epsilon.
Remove the isZero(int) method, since it is inconsistant with the isZero(double) method, and this class is tightly bound to it's backing store.
Some javadoc fixes.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@739667 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 00:28:07 +00:00
Sebastian Bazley d957f434e4 Javadoc typos
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@739571 13f79535-47bb-0310-9956-ffa450edef68
2009-01-31 15:53:42 +00:00
William Barker a3b466009f Initial checkin for the SparseRealVectorClass.
I know that it doesn't work 100% with the map*** methods that shouldn't be used with a sparse vector.  I'll clean those up shortly (including uncommenting unit tests).  Just want to get more eyes on this for the methods that matter.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@739504 13f79535-47bb-0310-9956-ffa450edef68
2009-01-31 04:51:17 +00:00
William Barker bca493b0ea Adding me to the list
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@738375 13f79535-47bb-0310-9956-ffa450edef68
2009-01-28 06:01:02 +00:00
William Barker 5a589042b9 Correct bug that prevents replacing an element while using an iterator
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@738370 13f79535-47bb-0310-9956-ffa450edef68
2009-01-28 05:20:31 +00:00
Phil Steitz bf9c5b292e Changed FractionFormat to extend NumberFormat. JIRA: MATH-189
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@737572 13f79535-47bb-0310-9956-ffa450edef68
2009-01-25 19:28:21 +00:00
Phil Steitz e375464b76 Added 1.2 release.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@737518 13f79535-47bb-0310-9956-ffa450edef68
2009-01-25 15:03:00 +00:00
Phil Steitz e58ea4a8e8 Fixed project name.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@737426 13f79535-47bb-0310-9956-ffa450edef68
2009-01-24 19:51:09 +00:00
Phil Steitz b5f0d0e102 Replaced maven-generated ant build with standalone version adapted from [io].
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@737417 13f79535-47bb-0310-9956-ffa450edef68
2009-01-24 18:44:58 +00:00
Phil Steitz 3ffa187429 Eliminated advertised exceptions that are no longer thrown.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@737415 13f79535-47bb-0310-9956-ffa450edef68
2009-01-24 18:38:33 +00:00
Luc Maisonobe a11930a607 various javadoc fixes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@737161 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 19:34:32 +00:00
Luc Maisonobe ead1ffe007 fixed missing word
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@737152 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 19:08:11 +00:00
Luc Maisonobe 90e47e8a4a fixed missing javadoc parameter
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@737151 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 19:05:56 +00:00
Luc Maisonobe efb60f8449 fixed wrong subversion directory
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@737149 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 19:04:21 +00:00
Luc Maisonobe 9fea76e338 fixed special xml characters
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@737148 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 19:03:41 +00:00
Phil Steitz 7d54daea2a Changed NaN comparison tests to use TestUtils.assertSame.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@737011 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 11:30:27 +00:00
Phil Steitz c5d148896f Forced symmetry in binomialCoefficientLog and added test cases for MathUtils.
JIRA: MATH-242
Reported and patched by Christian Semrau

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@736288 13f79535-47bb-0310-9956-ffa450edef68
2009-01-21 11:30:36 +00:00
Phil Steitz 944446a1a8 Fixed error in binomial coefficient computation
JIRA: MATH-241
Reported and patched by Christian Semrau

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735879 13f79535-47bb-0310-9956-ffa450edef68
2009-01-19 23:52:02 +00:00
Luc Maisonobe e8cfb4889e added a Legendre-Gauss integrator
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735876 13f79535-47bb-0310-9956-ffa450edef68
2009-01-19 23:40:14 +00:00
Phil Steitz 260b3a1410 No code change. Fixed spelling errors in comments.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735830 13f79535-47bb-0310-9956-ffa450edef68
2009-01-19 21:25:45 +00:00
Phil Steitz e4886c0a39 Fixed error in factorial accuracy. JIRA: MATH-240.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735781 13f79535-47bb-0310-9956-ffa450edef68
2009-01-19 19:43:01 +00:00
Luc Maisonobe 89db6968bc removed commented out code
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735546 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 21:09:42 +00:00
Luc Maisonobe 56e7606e9a improved consistency between solvers/integrators
by providing the integrand function as a parameter to integrate
rather that at construction, thus allowing reuse of a configured integrator
Jira: MATH-218

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735545 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 21:06:15 +00:00
Luc Maisonobe 217fe6de71 added absolute accuracy handling for integrators
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735536 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 20:45:16 +00:00
Luc Maisonobe e2048a1dd3 trying to recover history for solvers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735530 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 19:48:52 +00:00
Luc Maisonobe 2e405f1724 fixed various minor bugs identified by checkstyle and findbugs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735501 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 16:57:29 +00:00
Luc Maisonobe e6e70980dd added missing header
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735488 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 16:13:12 +00:00
Luc Maisonobe e60e3de474 Added a new minimization package with an implementation of the Brent algorithm
contributed by Gilles Sadowski.
The implementation needs some testing as it seems to never use the parabola fitting
and only relying on golden section. This may be due to the refactoring I did on
the original patch.
Jira: MATH-177

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735475 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 15:39:35 +00:00
Luc Maisonobe e7c3207b05 extracted a superinterface ConvergingAlgorithm from UnivariateRealSolver
for later reuse by upcoming minimization algorithms

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735468 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 14:47:51 +00:00
Luc Maisonobe eab127dce3 split the analysis package into several sub-packages
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735452 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 13:17:58 +00:00
Luc Maisonobe 1e3c634cb9 split the analysis package into several sub-packages
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735449 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 13:07:22 +00:00
Phil Steitz d326b9e467 javadoc formatting only.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735312 13f79535-47bb-0310-9956-ffa450edef68
2009-01-17 17:08:10 +00:00
Luc Maisonobe dabf3a5beb fixed overflow error in gdc computation
JIRA: MATH-238

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735178 13f79535-47bb-0310-9956-ffa450edef68
2009-01-16 23:06:32 +00:00
Phil Steitz 4564adbf19 Changed return type of nthRoot to List
Renamed getPhi to getArgument
Changed and documented behavior of nthRoot wrt NaN, infinite components
Improved nth root computation
Added some test cases

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@731822 13f79535-47bb-0310-9956-ffa450edef68
2009-01-06 03:46:29 +00:00