http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/geometry/spherical/twod/SphericalPolygonsSetTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/geometry/spherical/twod/SphericalPolygonsSetTest.java b/src/test/java/org/apache/commons/math4/geometry/spherical/twod/SphericalPolygonsSetTest.java index 6fbbcdc..e2359a3 100644 --- a/src/test/java/org/apache/commons/math4/geometry/spherical/twod/SphericalPolygonsSetTest.java +++ b/src/test/java/org/apache/commons/math4/geometry/spherical/twod/SphericalPolygonsSetTest.java @@ -14,23 +14,30 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.geometry.spherical.twod; +package org.apache.commons.math4.geometry.spherical.twod; import java.util.ArrayList; import java.util.List; -import org.apache.commons.math3.geometry.enclosing.EnclosingBall; -import org.apache.commons.math3.geometry.euclidean.threed.Rotation; -import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; -import org.apache.commons.math3.geometry.partitioning.Region.Location; -import org.apache.commons.math3.geometry.partitioning.RegionFactory; -import org.apache.commons.math3.geometry.partitioning.SubHyperplane; -import org.apache.commons.math3.geometry.spherical.oned.ArcsSet; -import org.apache.commons.math3.geometry.spherical.oned.Sphere1D; -import org.apache.commons.math3.random.UnitSphereRandomVectorGenerator; -import org.apache.commons.math3.random.Well1024a; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.MathUtils; +import org.apache.commons.math4.geometry.enclosing.EnclosingBall; +import org.apache.commons.math4.geometry.euclidean.threed.Rotation; +import org.apache.commons.math4.geometry.euclidean.threed.Vector3D; +import org.apache.commons.math4.geometry.partitioning.RegionFactory; +import org.apache.commons.math4.geometry.partitioning.SubHyperplane; +import org.apache.commons.math4.geometry.partitioning.Region.Location; +import org.apache.commons.math4.geometry.spherical.oned.ArcsSet; +import org.apache.commons.math4.geometry.spherical.oned.Sphere1D; +import org.apache.commons.math4.geometry.spherical.twod.Circle; +import org.apache.commons.math4.geometry.spherical.twod.Edge; +import org.apache.commons.math4.geometry.spherical.twod.S2Point; +import org.apache.commons.math4.geometry.spherical.twod.Sphere2D; +import org.apache.commons.math4.geometry.spherical.twod.SphericalPolygonsSet; +import org.apache.commons.math4.geometry.spherical.twod.SubCircle; +import org.apache.commons.math4.geometry.spherical.twod.Vertex; +import org.apache.commons.math4.random.UnitSphereRandomVectorGenerator; +import org.apache.commons.math4.random.Well1024a; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathUtils; import org.junit.Assert; import org.junit.Test;
http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/geometry/spherical/twod/SubCircleTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/geometry/spherical/twod/SubCircleTest.java b/src/test/java/org/apache/commons/math4/geometry/spherical/twod/SubCircleTest.java index 5b1c25f..743cdbc 100644 --- a/src/test/java/org/apache/commons/math4/geometry/spherical/twod/SubCircleTest.java +++ b/src/test/java/org/apache/commons/math4/geometry/spherical/twod/SubCircleTest.java @@ -14,16 +14,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.geometry.spherical.twod; - -import org.apache.commons.math3.geometry.euclidean.threed.Rotation; -import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; -import org.apache.commons.math3.geometry.partitioning.RegionFactory; -import org.apache.commons.math3.geometry.partitioning.Side; -import org.apache.commons.math3.geometry.partitioning.SubHyperplane.SplitSubHyperplane; -import org.apache.commons.math3.geometry.spherical.oned.ArcsSet; -import org.apache.commons.math3.geometry.spherical.oned.Sphere1D; -import org.apache.commons.math3.util.MathUtils; +package org.apache.commons.math4.geometry.spherical.twod; + +import org.apache.commons.math4.geometry.euclidean.threed.Rotation; +import org.apache.commons.math4.geometry.euclidean.threed.Vector3D; +import org.apache.commons.math4.geometry.partitioning.RegionFactory; +import org.apache.commons.math4.geometry.partitioning.Side; +import org.apache.commons.math4.geometry.partitioning.SubHyperplane.SplitSubHyperplane; +import org.apache.commons.math4.geometry.spherical.oned.ArcsSet; +import org.apache.commons.math4.geometry.spherical.oned.Sphere1D; +import org.apache.commons.math4.geometry.spherical.twod.Circle; +import org.apache.commons.math4.geometry.spherical.twod.Sphere2D; +import org.apache.commons.math4.geometry.spherical.twod.SubCircle; +import org.apache.commons.math4.util.MathUtils; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/Array2DRowRealMatrixTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/Array2DRowRealMatrixTest.java b/src/test/java/org/apache/commons/math4/linear/Array2DRowRealMatrixTest.java index 06c4b42..63300b4 100644 --- a/src/test/java/org/apache/commons/math4/linear/Array2DRowRealMatrixTest.java +++ b/src/test/java/org/apache/commons/math4/linear/Array2DRowRealMatrixTest.java @@ -14,20 +14,29 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import org.junit.Test; import org.junit.Assert; - -import org.apache.commons.math3.TestUtils; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.MathIllegalStateException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.linear.Array2DRowRealMatrix; +import org.apache.commons.math4.linear.ArrayRealVector; +import org.apache.commons.math4.linear.DefaultRealMatrixChangingVisitor; +import org.apache.commons.math4.linear.DefaultRealMatrixPreservingVisitor; +import org.apache.commons.math4.linear.LUDecomposition; +import org.apache.commons.math4.linear.MatrixDimensionMismatchException; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.NonSquareMatrixException; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.RealVector; +import org.apache.commons.math4.util.FastMath; /** * Test cases for the {@link Array2DRowRealMatrix} class. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/ArrayFieldVectorTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/ArrayFieldVectorTest.java b/src/test/java/org/apache/commons/math4/linear/ArrayFieldVectorTest.java index 05bd0bd..bc4211b 100644 --- a/src/test/java/org/apache/commons/math4/linear/ArrayFieldVectorTest.java +++ b/src/test/java/org/apache/commons/math4/linear/ArrayFieldVectorTest.java @@ -14,20 +14,25 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.io.Serializable; import java.lang.reflect.Array; import java.util.Arrays; -import org.apache.commons.math3.Field; -import org.apache.commons.math3.FieldElement; -import org.apache.commons.math3.TestUtils; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.fraction.Fraction; -import org.apache.commons.math3.fraction.FractionField; +import org.apache.commons.math4.Field; +import org.apache.commons.math4.FieldElement; +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.fraction.Fraction; +import org.apache.commons.math4.fraction.FractionField; +import org.apache.commons.math4.linear.ArrayFieldVector; +import org.apache.commons.math4.linear.FieldMatrix; +import org.apache.commons.math4.linear.FieldVector; +import org.apache.commons.math4.linear.FieldVectorChangingVisitor; +import org.apache.commons.math4.linear.FieldVectorPreservingVisitor; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/ArrayRealVectorTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/ArrayRealVectorTest.java b/src/test/java/org/apache/commons/math4/linear/ArrayRealVectorTest.java index 89b6812..44e7ed9 100644 --- a/src/test/java/org/apache/commons/math4/linear/ArrayRealVectorTest.java +++ b/src/test/java/org/apache/commons/math4/linear/ArrayRealVectorTest.java @@ -14,9 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; -import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.linear.ArrayRealVector; +import org.apache.commons.math4.linear.RealVector; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/BiDiagonalTransformerTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/BiDiagonalTransformerTest.java b/src/test/java/org/apache/commons/math4/linear/BiDiagonalTransformerTest.java index e2463de..b7d1669 100644 --- a/src/test/java/org/apache/commons/math4/linear/BiDiagonalTransformerTest.java +++ b/src/test/java/org/apache/commons/math4/linear/BiDiagonalTransformerTest.java @@ -15,12 +15,12 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; -import org.apache.commons.math3.linear.BiDiagonalTransformer; -import org.apache.commons.math3.linear.MatrixUtils; -import org.apache.commons.math3.linear.RealMatrix; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.linear.BiDiagonalTransformer; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/BlockFieldMatrixTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/BlockFieldMatrixTest.java b/src/test/java/org/apache/commons/math4/linear/BlockFieldMatrixTest.java index 193b873..48061d4 100644 --- a/src/test/java/org/apache/commons/math4/linear/BlockFieldMatrixTest.java +++ b/src/test/java/org/apache/commons/math4/linear/BlockFieldMatrixTest.java @@ -14,23 +14,31 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.util.Arrays; import java.util.Random; import org.junit.Test; import org.junit.Assert; - -import org.apache.commons.math3.TestUtils; -import org.apache.commons.math3.fraction.Fraction; -import org.apache.commons.math3.fraction.FractionField; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.exception.NotStrictlyPositiveException; -import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.fraction.Fraction; +import org.apache.commons.math4.fraction.FractionField; +import org.apache.commons.math4.linear.ArrayFieldVector; +import org.apache.commons.math4.linear.BlockFieldMatrix; +import org.apache.commons.math4.linear.DefaultFieldMatrixChangingVisitor; +import org.apache.commons.math4.linear.DefaultFieldMatrixPreservingVisitor; +import org.apache.commons.math4.linear.FieldLUDecomposition; +import org.apache.commons.math4.linear.FieldMatrix; +import org.apache.commons.math4.linear.FieldVector; +import org.apache.commons.math4.linear.MatrixDimensionMismatchException; +import org.apache.commons.math4.linear.NonSquareMatrixException; /** * Test cases for the {@link BlockFieldMatrix} class. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/BlockRealMatrixTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/BlockRealMatrixTest.java b/src/test/java/org/apache/commons/math4/linear/BlockRealMatrixTest.java index ceec98c..7d3acf1 100644 --- a/src/test/java/org/apache/commons/math4/linear/BlockRealMatrixTest.java +++ b/src/test/java/org/apache/commons/math4/linear/BlockRealMatrixTest.java @@ -14,21 +14,29 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.util.Arrays; import java.util.Random; import org.junit.Test; import org.junit.Assert; - -import org.apache.commons.math3.TestUtils; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.linear.ArrayRealVector; +import org.apache.commons.math4.linear.BlockRealMatrix; +import org.apache.commons.math4.linear.DefaultRealMatrixChangingVisitor; +import org.apache.commons.math4.linear.DefaultRealMatrixPreservingVisitor; +import org.apache.commons.math4.linear.LUDecomposition; +import org.apache.commons.math4.linear.MatrixDimensionMismatchException; +import org.apache.commons.math4.linear.NonSquareMatrixException; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.RealVector; +import org.apache.commons.math4.util.FastMath; /** * Test cases for the {@link BlockRealMatrix} class. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/CholeskyDecompositionTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/CholeskyDecompositionTest.java b/src/test/java/org/apache/commons/math4/linear/CholeskyDecompositionTest.java index eeafa7b..875ea9a 100644 --- a/src/test/java/org/apache/commons/math4/linear/CholeskyDecompositionTest.java +++ b/src/test/java/org/apache/commons/math4/linear/CholeskyDecompositionTest.java @@ -15,8 +15,14 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; - +package org.apache.commons.math4.linear; + +import org.apache.commons.math4.linear.CholeskyDecomposition; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.NonPositiveDefiniteMatrixException; +import org.apache.commons.math4.linear.NonSquareMatrixException; +import org.apache.commons.math4.linear.NonSymmetricMatrixException; +import org.apache.commons.math4.linear.RealMatrix; import org.junit.Test; import org.junit.Assert; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/CholeskySolverTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/CholeskySolverTest.java b/src/test/java/org/apache/commons/math4/linear/CholeskySolverTest.java index 716248f..93c192d 100644 --- a/src/test/java/org/apache/commons/math4/linear/CholeskySolverTest.java +++ b/src/test/java/org/apache/commons/math4/linear/CholeskySolverTest.java @@ -15,9 +15,13 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; -import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.linear.CholeskyDecomposition; +import org.apache.commons.math4.linear.DecompositionSolver; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.RealMatrix; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/ConjugateGradientTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/ConjugateGradientTest.java b/src/test/java/org/apache/commons/math4/linear/ConjugateGradientTest.java index b160fe3..07c2ee0 100644 --- a/src/test/java/org/apache/commons/math4/linear/ConjugateGradientTest.java +++ b/src/test/java/org/apache/commons/math4/linear/ConjugateGradientTest.java @@ -14,16 +14,27 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.util.Arrays; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MathUnsupportedOperationException; -import org.apache.commons.math3.exception.MaxCountExceededException; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.IterationEvent; -import org.apache.commons.math3.util.IterationListener; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MathUnsupportedOperationException; +import org.apache.commons.math4.exception.MaxCountExceededException; +import org.apache.commons.math4.linear.Array2DRowRealMatrix; +import org.apache.commons.math4.linear.ArrayRealVector; +import org.apache.commons.math4.linear.ConjugateGradient; +import org.apache.commons.math4.linear.IterativeLinearSolver; +import org.apache.commons.math4.linear.IterativeLinearSolverEvent; +import org.apache.commons.math4.linear.JacobiPreconditioner; +import org.apache.commons.math4.linear.NonPositiveDefiniteOperatorException; +import org.apache.commons.math4.linear.NonSquareOperatorException; +import org.apache.commons.math4.linear.PreconditionedIterativeLinearSolver; +import org.apache.commons.math4.linear.RealLinearOperator; +import org.apache.commons.math4.linear.RealVector; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.IterationEvent; +import org.apache.commons.math4.util.IterationListener; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/DiagonalMatrixTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/DiagonalMatrixTest.java b/src/test/java/org/apache/commons/math4/linear/DiagonalMatrixTest.java index db0ef43..cd703f5 100644 --- a/src/test/java/org/apache/commons/math4/linear/DiagonalMatrixTest.java +++ b/src/test/java/org/apache/commons/math4/linear/DiagonalMatrixTest.java @@ -14,14 +14,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.linear; - -import org.apache.commons.math3.TestUtils; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.exception.NumberIsTooLargeException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.util.Precision; +package org.apache.commons.math4.linear; + +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.linear.Array2DRowRealMatrix; +import org.apache.commons.math4.linear.DiagonalMatrix; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.RealVector; +import org.apache.commons.math4.linear.SingularMatrixException; +import org.apache.commons.math4.util.Precision; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/EigenDecompositionTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/EigenDecompositionTest.java b/src/test/java/org/apache/commons/math4/linear/EigenDecompositionTest.java index ce0a6d0..cf86a4c 100644 --- a/src/test/java/org/apache/commons/math4/linear/EigenDecompositionTest.java +++ b/src/test/java/org/apache/commons/math4/linear/EigenDecompositionTest.java @@ -15,17 +15,23 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.util.Arrays; import java.util.Random; - -import org.apache.commons.math3.distribution.NormalDistribution; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.Precision; -import org.apache.commons.math3.util.MathArrays; -import org.apache.commons.math3.exception.MathUnsupportedOperationException; +import org.apache.commons.math4.distribution.NormalDistribution; +import org.apache.commons.math4.exception.MathUnsupportedOperationException; +import org.apache.commons.math4.linear.ArrayRealVector; +import org.apache.commons.math4.linear.EigenDecomposition; +import org.apache.commons.math4.linear.LUDecomposition; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.RealVector; +import org.apache.commons.math4.linear.TriDiagonalTransformer; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathArrays; +import org.apache.commons.math4.util.Precision; import org.junit.After; import org.junit.Assert; import org.junit.Before; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/EigenSolverTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/EigenSolverTest.java b/src/test/java/org/apache/commons/math4/linear/EigenSolverTest.java index cff8683..541a8a7 100644 --- a/src/test/java/org/apache/commons/math4/linear/EigenSolverTest.java +++ b/src/test/java/org/apache/commons/math4/linear/EigenSolverTest.java @@ -15,13 +15,17 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.util.Random; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.util.Precision; - +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.linear.DecompositionSolver; +import org.apache.commons.math4.linear.EigenDecomposition; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.SingularMatrixException; +import org.apache.commons.math4.util.Precision; import org.junit.Test; import org.junit.Assert; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/FieldLUDecompositionTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/FieldLUDecompositionTest.java b/src/test/java/org/apache/commons/math4/linear/FieldLUDecompositionTest.java index a1fad5f..528fdeb 100644 --- a/src/test/java/org/apache/commons/math4/linear/FieldLUDecompositionTest.java +++ b/src/test/java/org/apache/commons/math4/linear/FieldLUDecompositionTest.java @@ -15,14 +15,17 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import org.junit.Test; import org.junit.Assert; - -import org.apache.commons.math3.TestUtils; -import org.apache.commons.math3.fraction.Fraction; -import org.apache.commons.math3.fraction.FractionField; +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.fraction.Fraction; +import org.apache.commons.math4.fraction.FractionField; +import org.apache.commons.math4.linear.Array2DRowFieldMatrix; +import org.apache.commons.math4.linear.FieldLUDecomposition; +import org.apache.commons.math4.linear.FieldMatrix; +import org.apache.commons.math4.linear.NonSquareMatrixException; public class FieldLUDecompositionTest { private Fraction[][] testData = { http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/FieldLUSolverTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/FieldLUSolverTest.java b/src/test/java/org/apache/commons/math4/linear/FieldLUSolverTest.java index d90dff5..03662d8 100644 --- a/src/test/java/org/apache/commons/math4/linear/FieldLUSolverTest.java +++ b/src/test/java/org/apache/commons/math4/linear/FieldLUSolverTest.java @@ -15,11 +15,18 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.fraction.Fraction; -import org.apache.commons.math3.fraction.FractionField; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.fraction.Fraction; +import org.apache.commons.math4.fraction.FractionField; +import org.apache.commons.math4.linear.Array2DRowFieldMatrix; +import org.apache.commons.math4.linear.FieldDecompositionSolver; +import org.apache.commons.math4.linear.FieldLUDecomposition; +import org.apache.commons.math4.linear.FieldMatrix; +import org.apache.commons.math4.linear.FieldVector; +import org.apache.commons.math4.linear.SingularMatrixException; +import org.apache.commons.math4.linear.SparseFieldVector; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/FieldMatrixImplTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/FieldMatrixImplTest.java b/src/test/java/org/apache/commons/math4/linear/FieldMatrixImplTest.java index 11e4bee..72c35b7 100644 --- a/src/test/java/org/apache/commons/math4/linear/FieldMatrixImplTest.java +++ b/src/test/java/org/apache/commons/math4/linear/FieldMatrixImplTest.java @@ -14,22 +14,30 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import org.junit.Test; import org.junit.Assert; - -import org.apache.commons.math3.TestUtils; -import org.apache.commons.math3.fraction.Fraction; -import org.apache.commons.math3.fraction.FractionField; -import org.apache.commons.math3.exception.MathIllegalStateException; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.exception.NotStrictlyPositiveException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.MathIllegalStateException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.fraction.Fraction; +import org.apache.commons.math4.fraction.FractionField; +import org.apache.commons.math4.linear.Array2DRowFieldMatrix; +import org.apache.commons.math4.linear.ArrayFieldVector; +import org.apache.commons.math4.linear.DefaultFieldMatrixChangingVisitor; +import org.apache.commons.math4.linear.DefaultFieldMatrixPreservingVisitor; +import org.apache.commons.math4.linear.FieldLUDecomposition; +import org.apache.commons.math4.linear.FieldMatrix; +import org.apache.commons.math4.linear.FieldVector; +import org.apache.commons.math4.linear.MatrixDimensionMismatchException; +import org.apache.commons.math4.linear.NonSquareMatrixException; /** * Test cases for the {@link Array2DRowFieldMatrix} class. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/FrenchRealVectorFormatTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/FrenchRealVectorFormatTest.java b/src/test/java/org/apache/commons/math4/linear/FrenchRealVectorFormatTest.java index 09aae68..d208c50 100644 --- a/src/test/java/org/apache/commons/math4/linear/FrenchRealVectorFormatTest.java +++ b/src/test/java/org/apache/commons/math4/linear/FrenchRealVectorFormatTest.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.util.Locale; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/HessenbergTransformerTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/HessenbergTransformerTest.java b/src/test/java/org/apache/commons/math4/linear/HessenbergTransformerTest.java index ec7271b..75e3af6 100644 --- a/src/test/java/org/apache/commons/math4/linear/HessenbergTransformerTest.java +++ b/src/test/java/org/apache/commons/math4/linear/HessenbergTransformerTest.java @@ -15,11 +15,15 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.util.Random; -import org.apache.commons.math3.distribution.NormalDistribution; +import org.apache.commons.math4.distribution.NormalDistribution; +import org.apache.commons.math4.linear.HessenbergTransformer; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.NonSquareMatrixException; +import org.apache.commons.math4.linear.RealMatrix; import org.junit.Test; import org.junit.Assert; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/HilbertMatrix.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/HilbertMatrix.java b/src/test/java/org/apache/commons/math4/linear/HilbertMatrix.java index 7303d99..05bffba 100644 --- a/src/test/java/org/apache/commons/math4/linear/HilbertMatrix.java +++ b/src/test/java/org/apache/commons/math4/linear/HilbertMatrix.java @@ -14,9 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; -import org.apache.commons.math3.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.linear.ArrayRealVector; +import org.apache.commons.math4.linear.RealLinearOperator; +import org.apache.commons.math4.linear.RealVector; /** This class implements Hilbert Matrices as {@link RealLinearOperator}. */ public class HilbertMatrix http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/InverseHilbertMatrix.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/InverseHilbertMatrix.java b/src/test/java/org/apache/commons/math4/linear/InverseHilbertMatrix.java index d42759f..0eba604 100644 --- a/src/test/java/org/apache/commons/math4/linear/InverseHilbertMatrix.java +++ b/src/test/java/org/apache/commons/math4/linear/InverseHilbertMatrix.java @@ -14,11 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.util.ArithmeticUtils; -import org.apache.commons.math3.util.CombinatoricsUtils; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.linear.ArrayRealVector; +import org.apache.commons.math4.linear.RealLinearOperator; +import org.apache.commons.math4.linear.RealVector; +import org.apache.commons.math4.util.ArithmeticUtils; +import org.apache.commons.math4.util.CombinatoricsUtils; /** * This class implements inverses of Hilbert Matrices as http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/LUDecompositionTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/LUDecompositionTest.java b/src/test/java/org/apache/commons/math4/linear/LUDecompositionTest.java index f8d610a..0eae9f6 100644 --- a/src/test/java/org/apache/commons/math4/linear/LUDecompositionTest.java +++ b/src/test/java/org/apache/commons/math4/linear/LUDecompositionTest.java @@ -15,8 +15,12 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; +import org.apache.commons.math4.linear.LUDecomposition; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.NonSquareMatrixException; +import org.apache.commons.math4.linear.RealMatrix; import org.junit.Test; import org.junit.Assert; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/LUSolverTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/LUSolverTest.java b/src/test/java/org/apache/commons/math4/linear/LUSolverTest.java index bf7b8b6..23d4a3e 100644 --- a/src/test/java/org/apache/commons/math4/linear/LUSolverTest.java +++ b/src/test/java/org/apache/commons/math4/linear/LUSolverTest.java @@ -15,10 +15,14 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; - -import org.apache.commons.math3.exception.MathIllegalArgumentException; +package org.apache.commons.math4.linear; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.linear.DecompositionSolver; +import org.apache.commons.math4.linear.LUDecomposition; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.SingularMatrixException; import org.junit.Test; import org.junit.Assert; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/MatrixDimensionMismatchExceptionTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/MatrixDimensionMismatchExceptionTest.java b/src/test/java/org/apache/commons/math4/linear/MatrixDimensionMismatchExceptionTest.java index acfa71d..e22e5ff 100644 --- a/src/test/java/org/apache/commons/math4/linear/MatrixDimensionMismatchExceptionTest.java +++ b/src/test/java/org/apache/commons/math4/linear/MatrixDimensionMismatchExceptionTest.java @@ -14,8 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; +import org.apache.commons.math4.linear.MatrixDimensionMismatchException; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/MatrixUtilsTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/MatrixUtilsTest.java b/src/test/java/org/apache/commons/math4/linear/MatrixUtilsTest.java index 5c308ad..9d80d3a 100644 --- a/src/test/java/org/apache/commons/math4/linear/MatrixUtilsTest.java +++ b/src/test/java/org/apache/commons/math4/linear/MatrixUtilsTest.java @@ -14,18 +14,30 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.math.BigDecimal; -import org.apache.commons.math3.TestUtils; -import org.apache.commons.math3.fraction.BigFraction; -import org.apache.commons.math3.fraction.Fraction; -import org.apache.commons.math3.fraction.FractionConversionException; -import org.apache.commons.math3.fraction.FractionField; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.exception.NotStrictlyPositiveException; -import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.fraction.BigFraction; +import org.apache.commons.math4.fraction.Fraction; +import org.apache.commons.math4.fraction.FractionConversionException; +import org.apache.commons.math4.fraction.FractionField; +import org.apache.commons.math4.linear.Array2DRowFieldMatrix; +import org.apache.commons.math4.linear.Array2DRowRealMatrix; +import org.apache.commons.math4.linear.ArrayRealVector; +import org.apache.commons.math4.linear.BlockRealMatrix; +import org.apache.commons.math4.linear.DiagonalMatrix; +import org.apache.commons.math4.linear.FieldMatrix; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.NonSquareMatrixException; +import org.apache.commons.math4.linear.NonSymmetricMatrixException; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.RealVector; +import org.apache.commons.math4.linear.SingularMatrixException; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/OpenMapRealMatrixTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/OpenMapRealMatrixTest.java b/src/test/java/org/apache/commons/math4/linear/OpenMapRealMatrixTest.java index d52a880..5e7c2fb 100644 --- a/src/test/java/org/apache/commons/math4/linear/OpenMapRealMatrixTest.java +++ b/src/test/java/org/apache/commons/math4/linear/OpenMapRealMatrixTest.java @@ -14,9 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; -import org.apache.commons.math3.exception.NumberIsTooLargeException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.linear.OpenMapRealMatrix; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/QRDecompositionTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/QRDecompositionTest.java b/src/test/java/org/apache/commons/math4/linear/QRDecompositionTest.java index a2d93f7..e501f1d 100644 --- a/src/test/java/org/apache/commons/math4/linear/QRDecompositionTest.java +++ b/src/test/java/org/apache/commons/math4/linear/QRDecompositionTest.java @@ -15,11 +15,19 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.util.Random; -import org.apache.commons.math3.linear.SingularMatrixException; +import org.apache.commons.math4.linear.ArrayRealVector; +import org.apache.commons.math4.linear.BlockRealMatrix; +import org.apache.commons.math4.linear.DefaultRealMatrixChangingVisitor; +import org.apache.commons.math4.linear.DefaultRealMatrixPreservingVisitor; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.QRDecomposition; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.RealVector; +import org.apache.commons.math4.linear.SingularMatrixException; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/QRSolverTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/QRSolverTest.java b/src/test/java/org/apache/commons/math4/linear/QRSolverTest.java index 04021c8..1b6fa72 100644 --- a/src/test/java/org/apache/commons/math4/linear/QRSolverTest.java +++ b/src/test/java/org/apache/commons/math4/linear/QRSolverTest.java @@ -15,12 +15,19 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.util.Random; -import org.apache.commons.math3.exception.MathIllegalArgumentException; - +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.linear.BlockRealMatrix; +import org.apache.commons.math4.linear.DecompositionSolver; +import org.apache.commons.math4.linear.DefaultRealMatrixChangingVisitor; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.QRDecomposition; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.RealVector; +import org.apache.commons.math4.linear.SingularMatrixException; import org.junit.Test; import org.junit.Assert; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/RRQRDecompositionTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/RRQRDecompositionTest.java b/src/test/java/org/apache/commons/math4/linear/RRQRDecompositionTest.java index 2f894f8..8623bec 100644 --- a/src/test/java/org/apache/commons/math4/linear/RRQRDecompositionTest.java +++ b/src/test/java/org/apache/commons/math4/linear/RRQRDecompositionTest.java @@ -15,10 +15,18 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.util.Random; +import org.apache.commons.math4.linear.Array2DRowRealMatrix; +import org.apache.commons.math4.linear.BlockRealMatrix; +import org.apache.commons.math4.linear.DefaultRealMatrixChangingVisitor; +import org.apache.commons.math4.linear.DefaultRealMatrixPreservingVisitor; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.RRQRDecomposition; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.SingularMatrixException; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/RRQRSolverTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/RRQRSolverTest.java b/src/test/java/org/apache/commons/math4/linear/RRQRSolverTest.java index 63364c7..eb91c45 100644 --- a/src/test/java/org/apache/commons/math4/linear/RRQRSolverTest.java +++ b/src/test/java/org/apache/commons/math4/linear/RRQRSolverTest.java @@ -15,12 +15,19 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.util.Random; -import org.apache.commons.math3.exception.MathIllegalArgumentException; - +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.linear.BlockRealMatrix; +import org.apache.commons.math4.linear.DecompositionSolver; +import org.apache.commons.math4.linear.DefaultRealMatrixChangingVisitor; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.RRQRDecomposition; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.RealVector; +import org.apache.commons.math4.linear.SingularMatrixException; import org.junit.Test; import org.junit.Assert; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/RealMatrixFormatAbstractTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/RealMatrixFormatAbstractTest.java b/src/test/java/org/apache/commons/math4/linear/RealMatrixFormatAbstractTest.java index a054623..752808e 100644 --- a/src/test/java/org/apache/commons/math4/linear/RealMatrixFormatAbstractTest.java +++ b/src/test/java/org/apache/commons/math4/linear/RealMatrixFormatAbstractTest.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.text.NumberFormat; import java.text.ParsePosition; @@ -24,8 +24,10 @@ import java.util.Locale; import org.junit.Ignore; import org.junit.Test; import org.junit.Assert; - -import org.apache.commons.math3.exception.MathParseException; +import org.apache.commons.math4.exception.MathParseException; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.RealMatrixFormat; public abstract class RealMatrixFormatAbstractTest { http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/RealMatrixFormatTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/RealMatrixFormatTest.java b/src/test/java/org/apache/commons/math4/linear/RealMatrixFormatTest.java index 86a1e28..1577b61 100644 --- a/src/test/java/org/apache/commons/math4/linear/RealMatrixFormatTest.java +++ b/src/test/java/org/apache/commons/math4/linear/RealMatrixFormatTest.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.util.Locale; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/RealVectorAbstractTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/RealVectorAbstractTest.java b/src/test/java/org/apache/commons/math4/linear/RealVectorAbstractTest.java index ac8cb8c..b49301c 100644 --- a/src/test/java/org/apache/commons/math4/linear/RealVectorAbstractTest.java +++ b/src/test/java/org/apache/commons/math4/linear/RealVectorAbstractTest.java @@ -14,46 +14,51 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.io.Serializable; import java.util.Arrays; import java.util.Iterator; import java.util.NoSuchElementException; -import org.apache.commons.math3.TestUtils; -import org.apache.commons.math3.analysis.UnivariateFunction; -import org.apache.commons.math3.analysis.function.Abs; -import org.apache.commons.math3.analysis.function.Acos; -import org.apache.commons.math3.analysis.function.Asin; -import org.apache.commons.math3.analysis.function.Atan; -import org.apache.commons.math3.analysis.function.Cbrt; -import org.apache.commons.math3.analysis.function.Ceil; -import org.apache.commons.math3.analysis.function.Cos; -import org.apache.commons.math3.analysis.function.Cosh; -import org.apache.commons.math3.analysis.function.Exp; -import org.apache.commons.math3.analysis.function.Expm1; -import org.apache.commons.math3.analysis.function.Floor; -import org.apache.commons.math3.analysis.function.Inverse; -import org.apache.commons.math3.analysis.function.Log; -import org.apache.commons.math3.analysis.function.Log10; -import org.apache.commons.math3.analysis.function.Log1p; -import org.apache.commons.math3.analysis.function.Power; -import org.apache.commons.math3.analysis.function.Rint; -import org.apache.commons.math3.analysis.function.Signum; -import org.apache.commons.math3.analysis.function.Sin; -import org.apache.commons.math3.analysis.function.Sinh; -import org.apache.commons.math3.analysis.function.Sqrt; -import org.apache.commons.math3.analysis.function.Tan; -import org.apache.commons.math3.analysis.function.Tanh; -import org.apache.commons.math3.analysis.function.Ulp; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MathArithmeticException; -import org.apache.commons.math3.exception.NotPositiveException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.MathArrays; +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.analysis.function.Abs; +import org.apache.commons.math4.analysis.function.Acos; +import org.apache.commons.math4.analysis.function.Asin; +import org.apache.commons.math4.analysis.function.Atan; +import org.apache.commons.math4.analysis.function.Cbrt; +import org.apache.commons.math4.analysis.function.Ceil; +import org.apache.commons.math4.analysis.function.Cos; +import org.apache.commons.math4.analysis.function.Cosh; +import org.apache.commons.math4.analysis.function.Exp; +import org.apache.commons.math4.analysis.function.Expm1; +import org.apache.commons.math4.analysis.function.Floor; +import org.apache.commons.math4.analysis.function.Inverse; +import org.apache.commons.math4.analysis.function.Log; +import org.apache.commons.math4.analysis.function.Log10; +import org.apache.commons.math4.analysis.function.Log1p; +import org.apache.commons.math4.analysis.function.Power; +import org.apache.commons.math4.analysis.function.Rint; +import org.apache.commons.math4.analysis.function.Signum; +import org.apache.commons.math4.analysis.function.Sin; +import org.apache.commons.math4.analysis.function.Sinh; +import org.apache.commons.math4.analysis.function.Sqrt; +import org.apache.commons.math4.analysis.function.Tan; +import org.apache.commons.math4.analysis.function.Tanh; +import org.apache.commons.math4.analysis.function.Ulp; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MathArithmeticException; +import org.apache.commons.math4.exception.NotPositiveException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.linear.OpenMapRealVector; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.RealVector; +import org.apache.commons.math4.linear.RealVectorChangingVisitor; +import org.apache.commons.math4.linear.RealVectorPreservingVisitor; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathArrays; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/RealVectorFormatAbstractTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/RealVectorFormatAbstractTest.java b/src/test/java/org/apache/commons/math4/linear/RealVectorFormatAbstractTest.java index c1a3d74..49f117b 100644 --- a/src/test/java/org/apache/commons/math4/linear/RealVectorFormatAbstractTest.java +++ b/src/test/java/org/apache/commons/math4/linear/RealVectorFormatAbstractTest.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.text.NumberFormat; import java.text.ParsePosition; @@ -23,8 +23,9 @@ import java.util.Locale; import org.junit.Test; import org.junit.Assert; - -import org.apache.commons.math3.exception.MathParseException; +import org.apache.commons.math4.exception.MathParseException; +import org.apache.commons.math4.linear.ArrayRealVector; +import org.apache.commons.math4.linear.RealVectorFormat; public abstract class RealVectorFormatAbstractTest { http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/RealVectorFormatTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/RealVectorFormatTest.java b/src/test/java/org/apache/commons/math4/linear/RealVectorFormatTest.java index fb21a0f..483e55e 100644 --- a/src/test/java/org/apache/commons/math4/linear/RealVectorFormatTest.java +++ b/src/test/java/org/apache/commons/math4/linear/RealVectorFormatTest.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.util.Locale; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/RealVectorTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/RealVectorTest.java b/src/test/java/org/apache/commons/math4/linear/RealVectorTest.java index 1412a09..f4d46fa 100644 --- a/src/test/java/org/apache/commons/math4/linear/RealVectorTest.java +++ b/src/test/java/org/apache/commons/math4/linear/RealVectorTest.java @@ -15,11 +15,12 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.util.Iterator; -import org.apache.commons.math3.linear.RealVector.Entry; +import org.apache.commons.math4.linear.RealVector; +import org.apache.commons.math4.linear.RealVector.Entry; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/RectangularCholeskyDecompositionTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/RectangularCholeskyDecompositionTest.java b/src/test/java/org/apache/commons/math4/linear/RectangularCholeskyDecompositionTest.java index fa43eac..42e2f2d 100644 --- a/src/test/java/org/apache/commons/math4/linear/RectangularCholeskyDecompositionTest.java +++ b/src/test/java/org/apache/commons/math4/linear/RectangularCholeskyDecompositionTest.java @@ -15,8 +15,11 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.RectangularCholeskyDecomposition; import org.junit.Test; import org.junit.Assert; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/SchurTransformerTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/SchurTransformerTest.java b/src/test/java/org/apache/commons/math4/linear/SchurTransformerTest.java index d40a1ba..4c645fb 100644 --- a/src/test/java/org/apache/commons/math4/linear/SchurTransformerTest.java +++ b/src/test/java/org/apache/commons/math4/linear/SchurTransformerTest.java @@ -15,11 +15,15 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.util.Random; -import org.apache.commons.math3.distribution.NormalDistribution; +import org.apache.commons.math4.distribution.NormalDistribution; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.NonSquareMatrixException; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.SchurTransformer; import org.junit.Test; import org.junit.Assert; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/SingularValueDecompositionTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/SingularValueDecompositionTest.java b/src/test/java/org/apache/commons/math4/linear/SingularValueDecompositionTest.java index 40c33a7..2848aa2 100644 --- a/src/test/java/org/apache/commons/math4/linear/SingularValueDecompositionTest.java +++ b/src/test/java/org/apache/commons/math4/linear/SingularValueDecompositionTest.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.io.BufferedReader; import java.io.DataInputStream; @@ -23,6 +23,10 @@ import java.io.IOException; import java.io.InputStreamReader; import java.util.Random; +import org.apache.commons.math4.linear.Array2DRowRealMatrix; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.SingularValueDecomposition; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/SingularValueSolverTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/SingularValueSolverTest.java b/src/test/java/org/apache/commons/math4/linear/SingularValueSolverTest.java index 9757cb7..b01332a 100644 --- a/src/test/java/org/apache/commons/math4/linear/SingularValueSolverTest.java +++ b/src/test/java/org/apache/commons/math4/linear/SingularValueSolverTest.java @@ -15,10 +15,15 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; - -import org.apache.commons.math3.exception.MathIllegalArgumentException; - +package org.apache.commons.math4.linear; + +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.linear.Array2DRowRealMatrix; +import org.apache.commons.math4.linear.DecompositionSolver; +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.RealVector; +import org.apache.commons.math4.linear.SingularValueDecomposition; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/SparseFieldMatrixTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/SparseFieldMatrixTest.java b/src/test/java/org/apache/commons/math4/linear/SparseFieldMatrixTest.java index 7591eaa..caab6a6 100644 --- a/src/test/java/org/apache/commons/math4/linear/SparseFieldMatrixTest.java +++ b/src/test/java/org/apache/commons/math4/linear/SparseFieldMatrixTest.java @@ -14,20 +14,26 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import org.junit.Test; import org.junit.Assert; - -import org.apache.commons.math3.Field; -import org.apache.commons.math3.fraction.Fraction; -import org.apache.commons.math3.fraction.FractionConversionException; -import org.apache.commons.math3.fraction.FractionField; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math4.Field; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.fraction.Fraction; +import org.apache.commons.math4.fraction.FractionConversionException; +import org.apache.commons.math4.fraction.FractionField; +import org.apache.commons.math4.linear.Array2DRowFieldMatrix; +import org.apache.commons.math4.linear.ArrayFieldVector; +import org.apache.commons.math4.linear.FieldLUDecomposition; +import org.apache.commons.math4.linear.FieldMatrix; +import org.apache.commons.math4.linear.FieldVector; +import org.apache.commons.math4.linear.NonSquareMatrixException; +import org.apache.commons.math4.linear.SparseFieldMatrix; /** * Test cases for the {@link SparseFieldMatrix} class. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/SparseFieldVectorTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/SparseFieldVectorTest.java b/src/test/java/org/apache/commons/math4/linear/SparseFieldVectorTest.java index 3b4c096..3a607f4 100644 --- a/src/test/java/org/apache/commons/math4/linear/SparseFieldVectorTest.java +++ b/src/test/java/org/apache/commons/math4/linear/SparseFieldVectorTest.java @@ -14,17 +14,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.util.Arrays; -import org.apache.commons.math3.fraction.Fraction; -import org.apache.commons.math3.fraction.FractionConversionException; -import org.apache.commons.math3.fraction.FractionField; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.exception.OutOfRangeException; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.fraction.Fraction; +import org.apache.commons.math4.fraction.FractionConversionException; +import org.apache.commons.math4.fraction.FractionField; +import org.apache.commons.math4.linear.FieldMatrix; +import org.apache.commons.math4.linear.FieldVector; +import org.apache.commons.math4.linear.FieldVectorChangingVisitor; +import org.apache.commons.math4.linear.FieldVectorPreservingVisitor; +import org.apache.commons.math4.linear.SparseFieldVector; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/SparseRealMatrixTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/SparseRealMatrixTest.java b/src/test/java/org/apache/commons/math4/linear/SparseRealMatrixTest.java index f54075d..9a1afa4 100644 --- a/src/test/java/org/apache/commons/math4/linear/SparseRealMatrixTest.java +++ b/src/test/java/org/apache/commons/math4/linear/SparseRealMatrixTest.java @@ -14,17 +14,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import org.junit.Test; import org.junit.Assert; - -import org.apache.commons.math3.TestUtils; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.exception.NoDataException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.exception.MathIllegalArgumentException; +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NoDataException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.linear.ArrayRealVector; +import org.apache.commons.math4.linear.BlockRealMatrix; +import org.apache.commons.math4.linear.LUDecomposition; +import org.apache.commons.math4.linear.NonSquareMatrixException; +import org.apache.commons.math4.linear.OpenMapRealMatrix; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.RealVector; /** * Test cases for the {@link OpenMapRealMatrix} class. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/SparseRealVectorTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/SparseRealVectorTest.java b/src/test/java/org/apache/commons/math4/linear/SparseRealVectorTest.java index 6b08423..58491b7 100644 --- a/src/test/java/org/apache/commons/math4/linear/SparseRealVectorTest.java +++ b/src/test/java/org/apache/commons/math4/linear/SparseRealVectorTest.java @@ -14,29 +14,31 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.linear; - -import org.apache.commons.math3.analysis.UnivariateFunction; -import org.apache.commons.math3.analysis.function.Abs; -import org.apache.commons.math3.analysis.function.Acos; -import org.apache.commons.math3.analysis.function.Asin; -import org.apache.commons.math3.analysis.function.Atan; -import org.apache.commons.math3.analysis.function.Cbrt; -import org.apache.commons.math3.analysis.function.Ceil; -import org.apache.commons.math3.analysis.function.Cos; -import org.apache.commons.math3.analysis.function.Cosh; -import org.apache.commons.math3.analysis.function.Exp; -import org.apache.commons.math3.analysis.function.Expm1; -import org.apache.commons.math3.analysis.function.Floor; -import org.apache.commons.math3.analysis.function.Log1p; -import org.apache.commons.math3.analysis.function.Power; -import org.apache.commons.math3.analysis.function.Rint; -import org.apache.commons.math3.analysis.function.Signum; -import org.apache.commons.math3.analysis.function.Sin; -import org.apache.commons.math3.analysis.function.Sinh; -import org.apache.commons.math3.analysis.function.Sqrt; -import org.apache.commons.math3.analysis.function.Tan; -import org.apache.commons.math3.analysis.function.Tanh; +package org.apache.commons.math4.linear; + +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.analysis.function.Abs; +import org.apache.commons.math4.analysis.function.Acos; +import org.apache.commons.math4.analysis.function.Asin; +import org.apache.commons.math4.analysis.function.Atan; +import org.apache.commons.math4.analysis.function.Cbrt; +import org.apache.commons.math4.analysis.function.Ceil; +import org.apache.commons.math4.analysis.function.Cos; +import org.apache.commons.math4.analysis.function.Cosh; +import org.apache.commons.math4.analysis.function.Exp; +import org.apache.commons.math4.analysis.function.Expm1; +import org.apache.commons.math4.analysis.function.Floor; +import org.apache.commons.math4.analysis.function.Log1p; +import org.apache.commons.math4.analysis.function.Power; +import org.apache.commons.math4.analysis.function.Rint; +import org.apache.commons.math4.analysis.function.Signum; +import org.apache.commons.math4.analysis.function.Sin; +import org.apache.commons.math4.analysis.function.Sinh; +import org.apache.commons.math4.analysis.function.Sqrt; +import org.apache.commons.math4.analysis.function.Tan; +import org.apache.commons.math4.analysis.function.Tanh; +import org.apache.commons.math4.linear.OpenMapRealVector; +import org.apache.commons.math4.linear.RealVector; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/SymmLQTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/SymmLQTest.java b/src/test/java/org/apache/commons/math4/linear/SymmLQTest.java index bc2cd7e..5934b58 100644 --- a/src/test/java/org/apache/commons/math4/linear/SymmLQTest.java +++ b/src/test/java/org/apache/commons/math4/linear/SymmLQTest.java @@ -14,14 +14,28 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.util.Arrays; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.IterationEvent; -import org.apache.commons.math3.util.IterationListener; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.linear.Array2DRowRealMatrix; +import org.apache.commons.math4.linear.ArrayRealVector; +import org.apache.commons.math4.linear.DecompositionSolver; +import org.apache.commons.math4.linear.IterativeLinearSolver; +import org.apache.commons.math4.linear.IterativeLinearSolverEvent; +import org.apache.commons.math4.linear.JacobiPreconditioner; +import org.apache.commons.math4.linear.LUDecomposition; +import org.apache.commons.math4.linear.NonPositiveDefiniteOperatorException; +import org.apache.commons.math4.linear.NonSelfAdjointOperatorException; +import org.apache.commons.math4.linear.NonSquareOperatorException; +import org.apache.commons.math4.linear.PreconditionedIterativeLinearSolver; +import org.apache.commons.math4.linear.RealLinearOperator; +import org.apache.commons.math4.linear.RealVector; +import org.apache.commons.math4.linear.SymmLQ; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.IterationEvent; +import org.apache.commons.math4.util.IterationListener; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/TriDiagonalTransformerTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/TriDiagonalTransformerTest.java b/src/test/java/org/apache/commons/math4/linear/TriDiagonalTransformerTest.java index b55265b..65b6d94 100644 --- a/src/test/java/org/apache/commons/math4/linear/TriDiagonalTransformerTest.java +++ b/src/test/java/org/apache/commons/math4/linear/TriDiagonalTransformerTest.java @@ -15,12 +15,15 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.util.Arrays; -import org.apache.commons.math3.util.FastMath; - +import org.apache.commons.math4.linear.MatrixUtils; +import org.apache.commons.math4.linear.NonSquareMatrixException; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.TriDiagonalTransformer; +import org.apache.commons.math4.util.FastMath; import org.junit.Test; import org.junit.Assert; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/UnmodifiableArrayRealVectorTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/UnmodifiableArrayRealVectorTest.java b/src/test/java/org/apache/commons/math4/linear/UnmodifiableArrayRealVectorTest.java index 88984dd..ef6a697 100644 --- a/src/test/java/org/apache/commons/math4/linear/UnmodifiableArrayRealVectorTest.java +++ b/src/test/java/org/apache/commons/math4/linear/UnmodifiableArrayRealVectorTest.java @@ -14,7 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; + +import org.apache.commons.math4.linear.ArrayRealVector; +import org.apache.commons.math4.linear.RealVector; /** * This is an implementation of {@link UnmodifiableRealVectorAbstractTest} for http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/UnmodifiableOpenMapRealVectorTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/UnmodifiableOpenMapRealVectorTest.java b/src/test/java/org/apache/commons/math4/linear/UnmodifiableOpenMapRealVectorTest.java index 4b3b53e..4e67150 100644 --- a/src/test/java/org/apache/commons/math4/linear/UnmodifiableOpenMapRealVectorTest.java +++ b/src/test/java/org/apache/commons/math4/linear/UnmodifiableOpenMapRealVectorTest.java @@ -15,7 +15,11 @@ * limitations under the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; + +import org.apache.commons.math4.linear.ArrayRealVector; +import org.apache.commons.math4.linear.OpenMapRealVector; +import org.apache.commons.math4.linear.RealVector; /** * This is an implementation of {@link UnmodifiableRealVectorAbstractTest} for http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/linear/UnmodifiableRealVectorAbstractTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/linear/UnmodifiableRealVectorAbstractTest.java b/src/test/java/org/apache/commons/math4/linear/UnmodifiableRealVectorAbstractTest.java index a2bdf33..9930801 100644 --- a/src/test/java/org/apache/commons/math4/linear/UnmodifiableRealVectorAbstractTest.java +++ b/src/test/java/org/apache/commons/math4/linear/UnmodifiableRealVectorAbstractTest.java @@ -14,7 +14,7 @@ * License for the specific language governing permissions and limitations under * the License. */ -package org.apache.commons.math3.linear; +package org.apache.commons.math4.linear; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; @@ -23,11 +23,14 @@ import java.util.HashSet; import java.util.Iterator; import java.util.Random; -import org.apache.commons.math3.analysis.UnivariateFunction; -import org.apache.commons.math3.analysis.function.Sin; -import org.apache.commons.math3.exception.MathUnsupportedOperationException; -import org.apache.commons.math3.linear.RealVector.Entry; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.analysis.UnivariateFunction; +import org.apache.commons.math4.analysis.function.Sin; +import org.apache.commons.math4.exception.MathUnsupportedOperationException; +import org.apache.commons.math4.linear.ArrayRealVector; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.linear.RealVector; +import org.apache.commons.math4.linear.RealVector.Entry; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/ml/clustering/DBSCANClustererTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ml/clustering/DBSCANClustererTest.java b/src/test/java/org/apache/commons/math4/ml/clustering/DBSCANClustererTest.java index 497459f..06e28c9 100644 --- a/src/test/java/org/apache/commons/math4/ml/clustering/DBSCANClustererTest.java +++ b/src/test/java/org/apache/commons/math4/ml/clustering/DBSCANClustererTest.java @@ -14,13 +14,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.ml.clustering; +package org.apache.commons.math4.ml.clustering; import java.util.Arrays; import java.util.List; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NullArgumentException; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.ml.clustering.Cluster; +import org.apache.commons.math4.ml.clustering.DBSCANClusterer; +import org.apache.commons.math4.ml.clustering.DoublePoint; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/ml/clustering/FuzzyKMeansClustererTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ml/clustering/FuzzyKMeansClustererTest.java b/src/test/java/org/apache/commons/math4/ml/clustering/FuzzyKMeansClustererTest.java index 885b9c2..a46c01e 100644 --- a/src/test/java/org/apache/commons/math4/ml/clustering/FuzzyKMeansClustererTest.java +++ b/src/test/java/org/apache/commons/math4/ml/clustering/FuzzyKMeansClustererTest.java @@ -14,18 +14,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.ml.clustering; +package org.apache.commons.math4.ml.clustering; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.apache.commons.math3.exception.MathIllegalArgumentException; -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.ml.distance.CanberraDistance; -import org.apache.commons.math3.ml.distance.DistanceMeasure; -import org.apache.commons.math3.random.JDKRandomGenerator; -import org.apache.commons.math3.random.RandomGenerator; +import org.apache.commons.math4.exception.MathIllegalArgumentException; +import org.apache.commons.math4.exception.NullArgumentException; +import org.apache.commons.math4.ml.clustering.CentroidCluster; +import org.apache.commons.math4.ml.clustering.Cluster; +import org.apache.commons.math4.ml.clustering.DoublePoint; +import org.apache.commons.math4.ml.clustering.FuzzyKMeansClusterer; +import org.apache.commons.math4.ml.distance.CanberraDistance; +import org.apache.commons.math4.ml.distance.DistanceMeasure; +import org.apache.commons.math4.random.JDKRandomGenerator; +import org.apache.commons.math4.random.RandomGenerator; import org.hamcrest.CoreMatchers; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/ml/clustering/KMeansPlusPlusClustererTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ml/clustering/KMeansPlusPlusClustererTest.java b/src/test/java/org/apache/commons/math4/ml/clustering/KMeansPlusPlusClustererTest.java index 3d3416d..31d4288 100644 --- a/src/test/java/org/apache/commons/math4/ml/clustering/KMeansPlusPlusClustererTest.java +++ b/src/test/java/org/apache/commons/math4/ml/clustering/KMeansPlusPlusClustererTest.java @@ -15,17 +15,21 @@ * limitations under the License. */ -package org.apache.commons.math3.ml.clustering; +package org.apache.commons.math4.ml.clustering; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.List; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.ml.distance.EuclideanDistance; -import org.apache.commons.math3.random.JDKRandomGenerator; -import org.apache.commons.math3.random.RandomGenerator; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.ml.clustering.CentroidCluster; +import org.apache.commons.math4.ml.clustering.Cluster; +import org.apache.commons.math4.ml.clustering.DoublePoint; +import org.apache.commons.math4.ml.clustering.KMeansPlusPlusClusterer; +import org.apache.commons.math4.ml.distance.EuclideanDistance; +import org.apache.commons.math4.random.JDKRandomGenerator; +import org.apache.commons.math4.random.RandomGenerator; import org.junit.Assert; import org.junit.Before; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/ml/clustering/MultiKMeansPlusPlusClustererTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ml/clustering/MultiKMeansPlusPlusClustererTest.java b/src/test/java/org/apache/commons/math4/ml/clustering/MultiKMeansPlusPlusClustererTest.java index 23d178a..cf4ec54 100644 --- a/src/test/java/org/apache/commons/math4/ml/clustering/MultiKMeansPlusPlusClustererTest.java +++ b/src/test/java/org/apache/commons/math4/ml/clustering/MultiKMeansPlusPlusClustererTest.java @@ -15,12 +15,17 @@ * limitations under the License. */ -package org.apache.commons.math3.ml.clustering; +package org.apache.commons.math4.ml.clustering; import java.util.Arrays; import java.util.List; +import org.apache.commons.math4.ml.clustering.CentroidCluster; +import org.apache.commons.math4.ml.clustering.Clusterable; +import org.apache.commons.math4.ml.clustering.DoublePoint; +import org.apache.commons.math4.ml.clustering.KMeansPlusPlusClusterer; +import org.apache.commons.math4.ml.clustering.MultiKMeansPlusPlusClusterer; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/ml/clustering/evaluation/SumOfClusterVariancesTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ml/clustering/evaluation/SumOfClusterVariancesTest.java b/src/test/java/org/apache/commons/math4/ml/clustering/evaluation/SumOfClusterVariancesTest.java index a92256d..4dde78f 100644 --- a/src/test/java/org/apache/commons/math4/ml/clustering/evaluation/SumOfClusterVariancesTest.java +++ b/src/test/java/org/apache/commons/math4/ml/clustering/evaluation/SumOfClusterVariancesTest.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.ml.clustering.evaluation; +package org.apache.commons.math4.ml.clustering.evaluation; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; @@ -24,9 +24,11 @@ import static org.junit.Assert.assertTrue; import java.util.ArrayList; import java.util.List; -import org.apache.commons.math3.ml.clustering.Cluster; -import org.apache.commons.math3.ml.clustering.DoublePoint; -import org.apache.commons.math3.ml.distance.EuclideanDistance; +import org.apache.commons.math4.ml.clustering.Cluster; +import org.apache.commons.math4.ml.clustering.DoublePoint; +import org.apache.commons.math4.ml.clustering.evaluation.ClusterEvaluator; +import org.apache.commons.math4.ml.clustering.evaluation.SumOfClusterVariances; +import org.apache.commons.math4.ml.distance.EuclideanDistance; import org.junit.Before; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/ml/distance/CanberraDistanceTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ml/distance/CanberraDistanceTest.java b/src/test/java/org/apache/commons/math4/ml/distance/CanberraDistanceTest.java index 339e517..2096303 100644 --- a/src/test/java/org/apache/commons/math4/ml/distance/CanberraDistanceTest.java +++ b/src/test/java/org/apache/commons/math4/ml/distance/CanberraDistanceTest.java @@ -14,8 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.ml.distance; +package org.apache.commons.math4.ml.distance; +import org.apache.commons.math4.ml.distance.CanberraDistance; +import org.apache.commons.math4.ml.distance.DistanceMeasure; import org.junit.Assert; import org.junit.Test;