commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1079350 [1/6] - in /commons/proper/math/trunk/src: main/java/org/apache/commons/math/exception/ main/java/org/apache/commons/math/linear/ main/java/org/apache/commons/math/optimization/general/ main/java/org/apache/commons/math/random/ tes...
Date Tue, 08 Mar 2011 13:42:18 GMT
Author: erans
Date: Tue Mar  8 13:42:16 2011
New Revision: 1079350

URL: http://svn.apache.org/viewvc?rev=1079350&view=rev
Log:
MATH-544
Matrix exception classes moved back to package "linear". Removed unnecessary
"import" statements, fixed Javadoc and unit tests and upgraded them to
JUnit 4 (MATH-423).

Added:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/MatrixDimensionMismatchException.java
      - copied, changed from r1078636, commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MatrixDimensionMismatchException.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/NonPositiveDefiniteMatrixException.java
      - copied, changed from r1078734, commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/NonPositiveDefiniteMatrixException.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/NonSquareMatrixException.java
      - copied, changed from r1078636, commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/NonSquareMatrixException.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/NonSymmetricMatrixException.java
      - copied, changed from r1078734, commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/NonSymmetricMatrixException.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/SingularMatrixException.java
      - copied, changed from r1078734, commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/SingularMatrixException.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/MatrixDimensionMismatchExceptionTest.java
      - copied, changed from r1078636, commons/proper/math/trunk/src/test/java/org/apache/commons/math/exception/MatrixDimensionMismatchExceptionTest.java
Removed:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MatrixDimensionMismatchException.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/NonPositiveDefiniteMatrixException.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/NonSquareMatrixException.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/NonSymmetricMatrixException.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/SingularMatrixException.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/exception/MatrixDimensionMismatchExceptionTest.java
Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractFieldMatrix.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractRealMatrix.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/Array2DRowFieldMatrix.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/Array2DRowRealMatrix.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/BlockFieldMatrix.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/BlockRealMatrix.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/CholeskyDecomposition.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/CholeskyDecompositionImpl.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/DecompositionSolver.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/EigenDecompositionImpl.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldDecompositionSolver.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldLUDecompositionImpl.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldMatrix.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/LUDecompositionImpl.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/MatrixUtils.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/OpenMapRealMatrix.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/QRDecompositionImpl.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealMatrix.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/TriDiagonalTransformer.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/optimization/general/AbstractLeastSquaresOptimizer.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/optimization/general/GaussNewtonOptimizer.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/random/CorrelatedRandomVectorGenerator.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/Array2DRowRealMatrixTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BlockFieldMatrixTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BlockRealMatrixTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/CholeskyDecompositionImplTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/EigenSolverTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldLUDecompositionImplTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldMatrixImplTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/LUDecompositionImplTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/LUSolverTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/QRSolverTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/SparseFieldMatrixTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/SparseRealMatrixTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/TriDiagonalTransformerTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/optimization/general/LevenbergMarquardtOptimizerTest.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractFieldMatrix.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractFieldMatrix.java?rev=1079350&r1=1079349&r2=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractFieldMatrix.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractFieldMatrix.java Tue Mar  8 13:42:16 2011
@@ -22,8 +22,6 @@ import java.util.Arrays;
 
 import org.apache.commons.math.Field;
 import org.apache.commons.math.FieldElement;
-import org.apache.commons.math.exception.MatrixDimensionMismatchException;
-import org.apache.commons.math.exception.NonSquareMatrixException;
 import org.apache.commons.math.exception.DimensionMismatchException;
 import org.apache.commons.math.exception.NoDataException;
 import org.apache.commons.math.exception.OutOfRangeException;

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractRealMatrix.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractRealMatrix.java?rev=1079350&r1=1079349&r2=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractRealMatrix.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractRealMatrix.java Tue Mar  8 13:42:16 2011
@@ -20,8 +20,6 @@ package org.apache.commons.math.linear;
 import org.apache.commons.math.exception.NoDataException;
 import org.apache.commons.math.exception.NotStrictlyPositiveException;
 import org.apache.commons.math.exception.DimensionMismatchException;
-import org.apache.commons.math.exception.NonSquareMatrixException;
-import org.apache.commons.math.exception.MatrixDimensionMismatchException;
 import org.apache.commons.math.exception.util.LocalizedFormats;
 import org.apache.commons.math.util.MathUtils;
 import org.apache.commons.math.util.FastMath;

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/Array2DRowFieldMatrix.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/Array2DRowFieldMatrix.java?rev=1079350&r1=1079349&r2=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/Array2DRowFieldMatrix.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/Array2DRowFieldMatrix.java Tue Mar  8 13:42:16 2011
@@ -162,7 +162,7 @@ public class Array2DRowFieldMatrix<T ext
      *
      * @param m Matrix to be added.
      * @return {@code this} + m.
-     * @throws org.apache.commons.math.exception.MatrixDimensionMismatchException
+     * @throws MatrixDimensionMismatchException
      * if {@code m} is not the same size as this matrix.
      */
     public Array2DRowFieldMatrix<T> add(final Array2DRowFieldMatrix<T> m) {
@@ -189,7 +189,7 @@ public class Array2DRowFieldMatrix<T ext
      *
      * @param m Matrix to be subtracted.
      * @return {@code this} + m.
-     * @throws org.apache.commons.math.exception.MatrixDimensionMismatchException
+     * @throws MatrixDimensionMismatchException
      * if {@code m} is not the same size as this matrix.
      */
     public Array2DRowFieldMatrix<T> subtract(final Array2DRowFieldMatrix<T> m) {

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/Array2DRowRealMatrix.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/Array2DRowRealMatrix.java?rev=1079350&r1=1079349&r2=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/Array2DRowRealMatrix.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/Array2DRowRealMatrix.java Tue Mar  8 13:42:16 2011
@@ -168,7 +168,7 @@ public class Array2DRowRealMatrix extend
      *
      * @param m Matrix to be added.
      * @return {@code this} + m.
-     * @throws org.apache.commons.math.exception.MatrixDimensionMismatchException
+     * @throws MatrixDimensionMismatchException
      * if {@code m} is not the same size as this matrix.
      */
     public Array2DRowRealMatrix add(final Array2DRowRealMatrix m) {
@@ -195,7 +195,7 @@ public class Array2DRowRealMatrix extend
      *
      * @param m Matrix to be subtracted.
      * @return {@code this} - m.
-     * @throws org.apache.commons.math.exception.MatrixDimensionMismatchException
+     * @throws MatrixDimensionMismatchException
      * if {@code m} is not the same size as this matrix.
      */
     public Array2DRowRealMatrix subtract(final Array2DRowRealMatrix m) {

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/BlockFieldMatrix.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/BlockFieldMatrix.java?rev=1079350&r1=1079349&r2=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/BlockFieldMatrix.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/BlockFieldMatrix.java Tue Mar  8 13:42:16 2011
@@ -23,7 +23,6 @@ import org.apache.commons.math.Field;
 import org.apache.commons.math.FieldElement;
 import org.apache.commons.math.exception.NoDataException;
 import org.apache.commons.math.exception.DimensionMismatchException;
-import org.apache.commons.math.exception.MatrixDimensionMismatchException;
 import org.apache.commons.math.exception.util.LocalizedFormats;
 import org.apache.commons.math.util.FastMath;
 

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/BlockRealMatrix.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/BlockRealMatrix.java?rev=1079350&r1=1079349&r2=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/BlockRealMatrix.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/BlockRealMatrix.java Tue Mar  8 13:42:16 2011
@@ -20,7 +20,6 @@ package org.apache.commons.math.linear;
 import java.io.Serializable;
 import java.util.Arrays;
 
-import org.apache.commons.math.exception.MatrixDimensionMismatchException;
 import org.apache.commons.math.exception.DimensionMismatchException;
 import org.apache.commons.math.exception.NoDataException;
 import org.apache.commons.math.exception.util.LocalizedFormats;

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/CholeskyDecomposition.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/CholeskyDecomposition.java?rev=1079350&r1=1079349&r2=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/CholeskyDecomposition.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/CholeskyDecomposition.java Tue Mar  8 13:42:16 2011
@@ -27,8 +27,7 @@ package org.apache.commons.math.linear;
  * <ul>
  *   <li>a {@link #getLT() getLT} method has been added,</li>
  *   <li>the <code>isspd</code> method has been removed, the constructors of
- *   implementation classes being expected to throw {@link
- *   org.apache.commons.math.exception.NonPositiveDefiniteMatrixException}
+ *   implementation classes being expected to throw {@link NonPositiveDefiniteMatrixException}
  *   when a matrix cannot be decomposed,</li>
  *   <li>a {@link #getDeterminant() getDeterminant} method has been added,</li>
  *   <li>the <code>solve</code> method has been replaced by a {@link
@@ -42,7 +41,6 @@ package org.apache.commons.math.linear;
  * @since 2.0
  */
 public interface CholeskyDecomposition {
-
     /**
      * Returns the matrix L of the decomposition.
      * <p>L is an lower-triangular matrix</p>
@@ -68,5 +66,4 @@ public interface CholeskyDecomposition {
      * @return a solver
      */
     DecompositionSolver getSolver();
-
 }

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/CholeskyDecompositionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/CholeskyDecompositionImpl.java?rev=1079350&r1=1079349&r2=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/CholeskyDecompositionImpl.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/CholeskyDecompositionImpl.java Tue Mar  8 13:42:16 2011
@@ -18,9 +18,6 @@
 package org.apache.commons.math.linear;
 
 import org.apache.commons.math.exception.DimensionMismatchException;
-import org.apache.commons.math.exception.NonSquareMatrixException;
-import org.apache.commons.math.exception.NonSymmetricMatrixException;
-import org.apache.commons.math.exception.NonPositiveDefiniteMatrixException;
 import org.apache.commons.math.util.FastMath;
 
 
@@ -270,8 +267,7 @@ public class CholeskyDecompositionImpl i
          * @param b right-hand side of the equation A &times; X = B
          * @return a vector X such that A &times; X = B
          * @throws DimensionMismatchException if the matrices dimensions do not match.
-         * @throws org.apache.commons.math.exception.SingularMatrixException if
-         * the decomposed matrix is singular.
+         * @throws SingularMatrixException if the decomposed matrix is singular.
          */
         public ArrayRealVector solve(ArrayRealVector b) {
             return new ArrayRealVector(solve(b.getDataRef()), false);

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/DecompositionSolver.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/DecompositionSolver.java?rev=1079350&r1=1079349&r2=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/DecompositionSolver.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/DecompositionSolver.java Tue Mar  8 13:42:16 2011
@@ -42,7 +42,7 @@ public interface DecompositionSolver {
      * @return a vector X that minimizes the two norm of A &times; X - B
      * @throws org.apache.commons.math.exception.DimensionMismatchException
      * if the matrices dimensions do not match.
-     * @throws org.apache.commons.math.exception.SingularMatrixException
+     * @throws SingularMatrixException
      * if the decomposed matrix is singular.
      */
     double[] solve(final double[] b);
@@ -54,7 +54,7 @@ public interface DecompositionSolver {
      * @return a vector X that minimizes the two norm of A &times; X - B
      * @throws org.apache.commons.math.exception.DimensionMismatchException
      * if the matrices dimensions do not match.
-     * @throws org.apache.commons.math.exception.SingularMatrixException
+     * @throws SingularMatrixException
      * if the decomposed matrix is singular.
      */
     RealVector solve(final RealVector b);
@@ -66,7 +66,7 @@ public interface DecompositionSolver {
      * @return a matrix X that minimizes the two norm of A &times; X - B
      * @throws org.apache.commons.math.exception.DimensionMismatchException
      * if the matrices dimensions do not match.
-     * @throws org.apache.commons.math.exception.SingularMatrixException
+     * @throws SingularMatrixException
      * if the decomposed matrix is singular.
      */
     RealMatrix solve(final RealMatrix b);
@@ -79,7 +79,7 @@ public interface DecompositionSolver {
 
     /** Get the inverse (or pseudo-inverse) of the decomposed matrix.
      * @return inverse matrix
-     * @throws org.apache.commons.math.exception.SingularMatrixException
+     * @throws SingularMatrixException
      * if the decomposed matrix is singular.
      */
     RealMatrix getInverse();

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/EigenDecompositionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/EigenDecompositionImpl.java?rev=1079350&r1=1079349&r2=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/EigenDecompositionImpl.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/EigenDecompositionImpl.java Tue Mar  8 13:42:16 2011
@@ -18,8 +18,6 @@
 package org.apache.commons.math.linear;
 
 import org.apache.commons.math.exception.MaxCountExceededException;
-import org.apache.commons.math.exception.SingularMatrixException;
-import org.apache.commons.math.exception.NonSymmetricMatrixException;
 import org.apache.commons.math.exception.DimensionMismatchException;
 import org.apache.commons.math.exception.util.LocalizedFormats;
 import org.apache.commons.math.util.MathUtils;

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldDecompositionSolver.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldDecompositionSolver.java?rev=1079350&r1=1079349&r2=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldDecompositionSolver.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldDecompositionSolver.java Tue Mar  8 13:42:16 2011
@@ -44,7 +44,7 @@ public interface FieldDecompositionSolve
      * @return a vector X that minimizes the two norm of A &times; X - B
      * @throws org.apache.commons.math.exception.DimensionMismatchException
      * if the matrices dimensions do not match.
-     * @throws org.apache.commons.math.exception.SingularMatrixException
+     * @throws SingularMatrixException
      * if the decomposed matrix is singular.
      */
     T[] solve(final T[] b);
@@ -56,7 +56,7 @@ public interface FieldDecompositionSolve
      * @return a vector X that minimizes the two norm of A &times; X - B
      * @throws org.apache.commons.math.exception.DimensionMismatchException
      * if the matrices dimensions do not match.
-     * @throws org.apache.commons.math.exception.SingularMatrixException
+     * @throws SingularMatrixException
      * if the decomposed matrix is singular.
      */
     FieldVector<T> solve(final FieldVector<T> b);
@@ -68,7 +68,7 @@ public interface FieldDecompositionSolve
      * @return a matrix X that minimizes the two norm of A &times; X - B
      * @throws org.apache.commons.math.exception.DimensionMismatchException
      * if the matrices dimensions do not match.
-     * @throws org.apache.commons.math.exception.SingularMatrixException
+     * @throws SingularMatrixException
      * if the decomposed matrix is singular.
      */
     FieldMatrix<T> solve(final FieldMatrix<T> b);
@@ -81,7 +81,7 @@ public interface FieldDecompositionSolve
 
     /** Get the inverse (or pseudo-inverse) of the decomposed matrix.
      * @return inverse matrix
-     * @throws org.apache.commons.math.exception.SingularMatrixException
+     * @throws SingularMatrixException
      * if the decomposed matrix is singular.
      */
     FieldMatrix<T> getInverse();

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldLUDecompositionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldLUDecompositionImpl.java?rev=1079350&r1=1079349&r2=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldLUDecompositionImpl.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldLUDecompositionImpl.java Tue Mar  8 13:42:16 2011
@@ -22,8 +22,6 @@ import java.lang.reflect.Array;
 import org.apache.commons.math.Field;
 import org.apache.commons.math.FieldElement;
 import org.apache.commons.math.exception.DimensionMismatchException;
-import org.apache.commons.math.exception.NonSquareMatrixException;
-import org.apache.commons.math.exception.SingularMatrixException;
 
 /**
  * Calculates the LUP-decomposition of a square matrix.

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldMatrix.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldMatrix.java?rev=1079350&r1=1079349&r2=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldMatrix.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldMatrix.java Tue Mar  8 13:42:16 2011
@@ -63,7 +63,7 @@ public interface FieldMatrix<T extends F
      *
      * @param m Matrix to be added.
      * @return {@code this} + {@code m}.
-     * @throws org.apache.commons.math.exception.MatrixDimensionMismatchException
+     * @throws MatrixDimensionMismatchException
      * if {@code m} is not the same size as this matrix.
      */
     FieldMatrix<T> add(FieldMatrix<T> m);
@@ -73,7 +73,7 @@ public interface FieldMatrix<T extends F
      *
      * @param m Matrix to be subtracted.
      * @return {@code this} - {@code m}.
-     * @throws org.apache.commons.math.exception.MatrixDimensionMismatchException
+     * @throws MatrixDimensionMismatchException
      * if {@code m} is not the same size as this matrix.
      */
     FieldMatrix<T> subtract(FieldMatrix<T> m);
@@ -201,7 +201,7 @@ public interface FieldMatrix<T extends F
     * @param subMatrix Array containing the submatrix replacement data.
     * @param row Row coordinate of the top-left element to be replaced.
     * @param column Column coordinate of the top-left element to be replaced.
-    * @throws org.apache.commons.math.exception.MatrixDimensionMismatchException
+    * @throws MatrixDimensionMismatchException
     * if {@code subMatrix} does not fit into this matrix from element in
     * {@code (row, column)}.
     * @throws org.apache.commons.math.exception.ZeroException if a row or column
@@ -235,7 +235,7 @@ public interface FieldMatrix<T extends F
     * of columns as the instance).
     * @throws org.apache.commons.math.exception.OutOfRangeException
     * if the specified row index is invalid.
-    * @throws org.apache.commons.math.exception.MatrixDimensionMismatchException
+    * @throws MatrixDimensionMismatchException
     * if the matrix dimensions do not match one instance row.
     */
    void setRowMatrix(int row, FieldMatrix<T> matrix);
@@ -260,7 +260,7 @@ public interface FieldMatrix<T extends F
     * number of rows as the instance).
     * @throws org.apache.commons.math.exception.OutOfRangeException
     * if the specified column index is invalid.
-    * @throws org.apache.commons.math.exception.MatrixDimensionMismatchException
+    * @throws MatrixDimensionMismatchException
     * if the matrix dimensions do not match one instance column.
     */
    void setColumnMatrix(int column, FieldMatrix<T> matrix);
@@ -285,7 +285,7 @@ public interface FieldMatrix<T extends F
     * as the instance).
     * @throws org.apache.commons.math.exception.OutOfRangeException
     * if the specified row index is invalid.
-    * @throws org.apache.commons.math.exception.MatrixDimensionMismatchException
+    * @throws MatrixDimensionMismatchException
     * if the vector dimension does not match one instance row.
     */
    void setRowVector(int row, FieldVector<T> vector);
@@ -310,7 +310,7 @@ public interface FieldMatrix<T extends F
     * as the instance).
     * @throws org.apache.commons.math.exception.OutOfRangeException
     * if the specified column index is invalid.
-    * @throws org.apache.commons.math.exception.MatrixDimensionMismatchException
+    * @throws MatrixDimensionMismatchException
     * if the vector dimension does not match one instance column.
     */
    void setColumnVector(int column, FieldVector<T> vector);
@@ -334,7 +334,7 @@ public interface FieldMatrix<T extends F
      * the instance).
      * @throws org.apache.commons.math.exception.OutOfRangeException
      * if the specified row index is invalid.
-     * @throws org.apache.commons.math.exception.MatrixDimensionMismatchException
+     * @throws MatrixDimensionMismatchException
      * if the array size does not match one instance row.
      */
     void setRow(int row, T[] array);
@@ -357,7 +357,7 @@ public interface FieldMatrix<T extends F
      * @param array column array (must have the same number of rows as the instance)
      * @throws org.apache.commons.math.exception.OutOfRangeException
      * if the specified column index is invalid.
-     * @throws org.apache.commons.math.exception.MatrixDimensionMismatchException
+     * @throws MatrixDimensionMismatchException
      * if the array size does not match one instance column.
      */
     void setColumn(int column, T[] array);
@@ -423,7 +423,7 @@ public interface FieldMatrix<T extends F
      * trace</a> of the matrix (the sum of the elements on the main diagonal).
      *
      * @return trace
-     * @throws org.apache.commons.math.exception.NonSquareMatrixException
+     * @throws NonSquareMatrixException
      * if the matrix is not square.
      */
     T getTrace();

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/LUDecompositionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/LUDecompositionImpl.java?rev=1079350&r1=1079349&r2=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/LUDecompositionImpl.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/LUDecompositionImpl.java Tue Mar  8 13:42:16 2011
@@ -18,8 +18,6 @@
 package org.apache.commons.math.linear;
 
 import org.apache.commons.math.exception.DimensionMismatchException;
-import org.apache.commons.math.exception.NonSquareMatrixException;
-import org.apache.commons.math.exception.SingularMatrixException;
 import org.apache.commons.math.util.FastMath;
 
 /**

Copied: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/MatrixDimensionMismatchException.java (from r1078636, commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MatrixDimensionMismatchException.java)
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/MatrixDimensionMismatchException.java?p2=commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/MatrixDimensionMismatchException.java&p1=commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MatrixDimensionMismatchException.java&r1=1078636&r2=1079350&rev=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MatrixDimensionMismatchException.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/MatrixDimensionMismatchException.java Tue Mar  8 13:42:16 2011
@@ -14,8 +14,9 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.commons.math.exception;
+package org.apache.commons.math.linear;
 
+import org.apache.commons.math.exception.MultiDimensionMismatchException;
 import org.apache.commons.math.exception.util.LocalizedFormats;
 
 /**

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/MatrixUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/MatrixUtils.java?rev=1079350&r1=1079349&r2=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/MatrixUtils.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/MatrixUtils.java Tue Mar  8 13:42:16 2011
@@ -29,7 +29,6 @@ import org.apache.commons.math.exception
 import org.apache.commons.math.exception.NoDataException;
 import org.apache.commons.math.exception.NumberIsTooSmallException;
 import org.apache.commons.math.exception.NullArgumentException;
-import org.apache.commons.math.exception.MatrixDimensionMismatchException;
 import org.apache.commons.math.exception.DimensionMismatchException;
 import org.apache.commons.math.exception.util.LocalizedFormats;
 import org.apache.commons.math.fraction.BigFraction;

Copied: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/NonPositiveDefiniteMatrixException.java (from r1078734, commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/NonPositiveDefiniteMatrixException.java)
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/NonPositiveDefiniteMatrixException.java?p2=commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/NonPositiveDefiniteMatrixException.java&p1=commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/NonPositiveDefiniteMatrixException.java&r1=1078734&r2=1079350&rev=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/NonPositiveDefiniteMatrixException.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/NonPositiveDefiniteMatrixException.java Tue Mar  8 13:42:16 2011
@@ -14,8 +14,9 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.commons.math.exception;
+package org.apache.commons.math.linear;
 
+import org.apache.commons.math.exception.MathIllegalArgumentException;
 import org.apache.commons.math.exception.util.LocalizedFormats;
 
 /**

Copied: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/NonSquareMatrixException.java (from r1078636, commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/NonSquareMatrixException.java)
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/NonSquareMatrixException.java?p2=commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/NonSquareMatrixException.java&p1=commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/NonSquareMatrixException.java&r1=1078636&r2=1079350&rev=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/NonSquareMatrixException.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/NonSquareMatrixException.java Tue Mar  8 13:42:16 2011
@@ -14,8 +14,9 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.commons.math.exception;
+package org.apache.commons.math.linear;
 
+import org.apache.commons.math.exception.DimensionMismatchException;
 import org.apache.commons.math.exception.util.LocalizedFormats;
 
 /**

Copied: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/NonSymmetricMatrixException.java (from r1078734, commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/NonSymmetricMatrixException.java)
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/NonSymmetricMatrixException.java?p2=commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/NonSymmetricMatrixException.java&p1=commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/NonSymmetricMatrixException.java&r1=1078734&r2=1079350&rev=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/NonSymmetricMatrixException.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/NonSymmetricMatrixException.java Tue Mar  8 13:42:16 2011
@@ -14,8 +14,9 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.commons.math.exception;
+package org.apache.commons.math.linear;
 
+import org.apache.commons.math.exception.MathIllegalArgumentException;
 import org.apache.commons.math.exception.util.LocalizedFormats;
 
 /**

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/OpenMapRealMatrix.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/OpenMapRealMatrix.java?rev=1079350&r1=1079349&r2=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/OpenMapRealMatrix.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/OpenMapRealMatrix.java Tue Mar  8 13:42:16 2011
@@ -170,7 +170,7 @@ public class OpenMapRealMatrix extends A
      *
      * @param m Matrix to postmultiply by.
      * @return {@code this} * {@code m}.
-     * @throws org.apache.commons.math.exception.MatrixDimensionMismatchException
+     * @throws MatrixDimensionMismatchException
      * if the number of rows of {@code m} differ from the number of columns
      * of this matrix.
      */

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/QRDecompositionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/QRDecompositionImpl.java?rev=1079350&r1=1079349&r2=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/QRDecompositionImpl.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/QRDecompositionImpl.java Tue Mar  8 13:42:16 2011
@@ -20,7 +20,6 @@ package org.apache.commons.math.linear;
 import java.util.Arrays;
 
 import org.apache.commons.math.exception.DimensionMismatchException;
-import org.apache.commons.math.exception.SingularMatrixException;
 import org.apache.commons.math.util.FastMath;
 
 

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealMatrix.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealMatrix.java?rev=1079350&r1=1079349&r2=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealMatrix.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealMatrix.java Tue Mar  8 13:42:16 2011
@@ -234,7 +234,7 @@ public interface RealMatrix extends AnyM
     * columns as the instance).
     * @throws org.apache.commons.math.exception.OutOfRangeException if the
     * specified row index is invalid.
-    * @throws org.apache.commons.math.exception.MatrixDimensionMismatchException
+    * @throws MatrixDimensionMismatchException
     * if the matrix dimensions do not match one instance row.
     */
     void setRowMatrix(int row, RealMatrix matrix);
@@ -259,7 +259,7 @@ public interface RealMatrix extends AnyM
     * of rows as the instance).
     * @throws org.apache.commons.math.exception.OutOfRangeException if
     * the specified column index is invalid.
-    * @throws org.apache.commons.math.exception.MatrixDimensionMismatchException
+    * @throws MatrixDimensionMismatchException
     * if the {@code matrix} dimensions do not match one instance column.
     */
     void setColumnMatrix(int column, RealMatrix matrix);
@@ -284,7 +284,7 @@ public interface RealMatrix extends AnyM
     * as the instance).
     * @throws org.apache.commons.math.exception.OutOfRangeException if
     * the specified row index is invalid.
-    * @throws org.apache.commons.math.exception.MatrixDimensionMismatchException
+    * @throws MatrixDimensionMismatchException
     * if the vector dimension does not match one instance row.
     */
     void setRowVector(int row, RealVector vector);
@@ -309,7 +309,7 @@ public interface RealMatrix extends AnyM
     * the instance).
     * @throws org.apache.commons.math.exception.OutOfRangeException if the
     * specified column index is invalid.
-    * @throws org.apache.commons.math.exception.MatrixDimensionMismatchException
+    * @throws MatrixDimensionMismatchException
     * if the vector dimension does not match one instance column.
     */
     void setColumnVector(int column, RealVector vector);
@@ -334,7 +334,7 @@ public interface RealMatrix extends AnyM
      * the instance)
      * @throws org.apache.commons.math.exception.OutOfRangeException if the
      * specified row index is invalid.
-     * @throws org.apache.commons.math.exception.MatrixDimensionMismatchException
+     * @throws MatrixDimensionMismatchException
      * if the array size does not match one instance row.
      */
     void setRow(int row, double[] array);
@@ -359,7 +359,7 @@ public interface RealMatrix extends AnyM
      * the instance).
      * @throws org.apache.commons.math.exception.OutOfRangeException if the
      * specified column index is invalid.
-     * @throws org.apache.commons.math.exception.MatrixDimensionMismatchException
+     * @throws MatrixDimensionMismatchException
      * if the array size does not match one instance column.
      */
     void setColumn(int column, double[] array);
@@ -427,7 +427,7 @@ public interface RealMatrix extends AnyM
      * trace</a> of the matrix (the sum of the elements on the main diagonal).
      *
      * @return the trace.
-     * @throws org.apache.commons.math.exception.NonSquareMatrixException
+     * @throws NonSquareMatrixException
      * if the matrix is not square.
      */
     double getTrace();

Copied: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/SingularMatrixException.java (from r1078734, commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/SingularMatrixException.java)
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/SingularMatrixException.java?p2=commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/SingularMatrixException.java&p1=commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/SingularMatrixException.java&r1=1078734&r2=1079350&rev=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/SingularMatrixException.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/SingularMatrixException.java Tue Mar  8 13:42:16 2011
@@ -14,8 +14,9 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.commons.math.exception;
+package org.apache.commons.math.linear;
 
+import org.apache.commons.math.exception.MathIllegalArgumentException;
 import org.apache.commons.math.exception.util.LocalizedFormats;
 
 /**

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/TriDiagonalTransformer.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/TriDiagonalTransformer.java?rev=1079350&r1=1079349&r2=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/TriDiagonalTransformer.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/TriDiagonalTransformer.java Tue Mar  8 13:42:16 2011
@@ -19,7 +19,6 @@ package org.apache.commons.math.linear;
 
 import java.util.Arrays;
 
-import org.apache.commons.math.exception.NonSquareMatrixException;
 import org.apache.commons.math.util.FastMath;
 
 
@@ -58,11 +57,12 @@ class TriDiagonalTransformer {
      * Only the upper triangular part of the matrix is used.</p>
      *
      * @param matrix Symmetrical matrix to transform.
-     * @exception NonSquareMatrixException if the matrix is not square.
+     * @throws NonSquareMatrixException if the matrix is not square.
      */
     public TriDiagonalTransformer(RealMatrix matrix) {
         if (!matrix.isSquare()) {
-            throw new NonSquareMatrixException(matrix.getRowDimension(), matrix.getColumnDimension());
+            throw new NonSquareMatrixException(matrix.getRowDimension(),
+                                               matrix.getColumnDimension());
         }
 
         final int m = matrix.getRowDimension();

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/optimization/general/AbstractLeastSquaresOptimizer.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/optimization/general/AbstractLeastSquaresOptimizer.java?rev=1079350&r1=1079349&r2=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/optimization/general/AbstractLeastSquaresOptimizer.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/optimization/general/AbstractLeastSquaresOptimizer.java Tue Mar  8 13:42:16 2011
@@ -172,10 +172,10 @@ public abstract class AbstractLeastSquar
      * Get the covariance matrix of the optimized parameters.
      *
      * @return the covariance matrix.
-     * @throws org.apache.commons.math.exception.SingularMatrixException
+     * @throws org.apache.commons.math.linear.SingularMatrixException
      * if the covariance matrix cannot be computed (singular problem).
-     * @throws org.apache.commons.math.exception.MathUserException if the jacobian
-     * function throws one.
+     * @throws org.apache.commons.math.exception.MathUserException if the
+     * jacobian function throws one.
      */
     public double[][] getCovariances() {
         // set up the jacobian
@@ -205,8 +205,8 @@ public abstract class AbstractLeastSquar
      * Guessing is covariance-based: It only gives a rough order of magnitude.
      *
      * @return errors in optimized parameters
-     * @throws org.apache.commons.math.exception.SingularMatrixException if
-     * the covariances matrix cannot be computed.
+     * @throws org.apache.commons.math.linear.SingularMatrixException
+     * if the covariances matrix cannot be computed.
      * @throws NumberIsTooSmallException if the number of degrees of freedom is not
      * positive, i.e. the number of measurements is less or equal to the number of
      * parameters.

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/optimization/general/GaussNewtonOptimizer.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/optimization/general/GaussNewtonOptimizer.java?rev=1079350&r1=1079349&r2=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/optimization/general/GaussNewtonOptimizer.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/optimization/general/GaussNewtonOptimizer.java Tue Mar  8 13:42:16 2011
@@ -18,7 +18,6 @@
 package org.apache.commons.math.optimization.general;
 
 import org.apache.commons.math.exception.MathUserException;
-import org.apache.commons.math.exception.SingularMatrixException;
 import org.apache.commons.math.exception.ConvergenceException;
 import org.apache.commons.math.exception.util.LocalizedFormats;
 import org.apache.commons.math.linear.BlockRealMatrix;
@@ -26,6 +25,7 @@ import org.apache.commons.math.linear.De
 import org.apache.commons.math.linear.LUDecompositionImpl;
 import org.apache.commons.math.linear.QRDecompositionImpl;
 import org.apache.commons.math.linear.RealMatrix;
+import org.apache.commons.math.linear.SingularMatrixException;
 import org.apache.commons.math.optimization.VectorialPointValuePair;
 import org.apache.commons.math.optimization.ConvergenceChecker;
 

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/random/CorrelatedRandomVectorGenerator.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/random/CorrelatedRandomVectorGenerator.java?rev=1079350&r1=1079349&r2=1079350&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/random/CorrelatedRandomVectorGenerator.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/random/CorrelatedRandomVectorGenerator.java Tue Mar  8 13:42:16 2011
@@ -18,7 +18,7 @@
 package org.apache.commons.math.random;
 
 import org.apache.commons.math.exception.DimensionMismatchException;
-import org.apache.commons.math.exception.NonPositiveDefiniteMatrixException;
+import org.apache.commons.math.linear.NonPositiveDefiniteMatrixException;
 import org.apache.commons.math.linear.MatrixUtils;
 import org.apache.commons.math.linear.RealMatrix;
 import org.apache.commons.math.util.FastMath;
@@ -73,17 +73,18 @@ public class CorrelatedRandomVectorGener
     /** Rank of the covariance matrix. */
     private int rank;
 
-    /** Simple constructor.
-     * <p>Build a correlated random vector generator from its mean
-     * vector and covariance matrix.</p>
-     * @param mean expected mean values for all components
-     * @param covariance covariance matrix
-     * @param small diagonal elements threshold under which  column are
+    /**
+     * Builds a correlated random vector generator from its mean
+     * vector and covariance matrix.
+     *
+     * @param mean Expected mean values for all components.
+     * @param covariance Covariance matrix.
+     * @param small Diagonal elements threshold under which  column are
      * considered to be dependent on previous ones and are discarded
      * @param generator underlying generator for uncorrelated normalized
-     * components
-     * @throws NonPositiveDefiniteMatrixException if the
-     * covariance matrix is not strictly positive definite
+     * components.
+     * @throws org.apache.commons.math.linear.NonPositiveDefiniteMatrixException
+     * if the covariance matrix is not strictly positive definite.
      * @throws DimensionMismatchException if the mean and covariance
      * arrays dimensions do not match.
      */
@@ -100,19 +101,19 @@ public class CorrelatedRandomVectorGener
 
         this.generator = generator;
         normalized = new double[rank];
-
     }
 
-    /** Simple constructor.
-     * <p>Build a null mean random correlated vector generator from its
-     * covariance matrix.</p>
-     * @param covariance covariance matrix
-     * @param small diagonal elements threshold under which  column are
-     * considered to be dependent on previous ones and are discarded
-     * @param generator underlying generator for uncorrelated normalized
-     * components
-     * @exception NonPositiveDefiniteMatrixException if the
-     * covariance matrix is not strictly positive definite
+    /**
+     * Builds a null mean random correlated vector generator from its
+     * covariance matrix.
+     *
+     * @param covariance Covariance matrix.
+     * @param small Diagonal elements threshold under which  column are
+     * considered to be dependent on previous ones and are discarded.
+     * @param generator Underlying generator for uncorrelated normalized
+     * components.
+     * @throws org.apache.commons.math.linear.NonPositiveDefiniteMatrixException
+     * if the covariance matrix is not strictly positive definite.
      */
     public CorrelatedRandomVectorGenerator(RealMatrix covariance, double small,
                                            NormalizedRandomGenerator generator) {
@@ -126,7 +127,6 @@ public class CorrelatedRandomVectorGener
 
         this.generator = generator;
         normalized = new double[rank];
-
     }
 
     /** Get the underlying normalized components generator.
@@ -171,8 +171,8 @@ public class CorrelatedRandomVectorGener
      * @param covariance covariance matrix
      * @param small diagonal elements threshold under which  column are
      * considered to be dependent on previous ones and are discarded
-     * @throws NonPositiveDefiniteMatrixException if the
-     * covariance matrix is not strictly positive definite.
+     * @throws org.apache.commons.math.linear.NonPositiveDefiniteMatrixException
+     * if the covariance matrix is not strictly positive definite.
      */
     private void decompose(RealMatrix covariance, double small) {
         int order = covariance.getRowDimension();



Mime
View raw message