You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2011/11/04 11:23:15 UTC
svn commit: r1197488 -
/commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldLUSolverTest.java
Author: sebb
Date: Fri Nov 4 10:23:14 2011
New Revision: 1197488
URL: http://svn.apache.org/viewvc?rev=1197488&view=rev
Log:
Fix generics
Modified:
commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldLUSolverTest.java
Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldLUSolverTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldLUSolverTest.java?rev=1197488&r1=1197487&r2=1197488&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldLUSolverTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldLUSolverTest.java Fri Nov 4 10:23:14 2011
@@ -100,10 +100,10 @@ public class FieldLUSolverTest {
/** test solve singularity errors */
@Test
public void testSolveSingularityErrors() {
- FieldDecompositionSolver solver;
- solver = new FieldLUDecomposition(createFractionMatrix(singular))
+ FieldDecompositionSolver<Fraction> solver;
+ solver = new FieldLUDecomposition<Fraction>(createFractionMatrix(singular))
.getSolver();
- FieldMatrix b = createFractionMatrix(new int[2][2]);
+ FieldMatrix<Fraction> b = createFractionMatrix(new int[2][2]);
try {
solver.solve(b);
Assert.fail("an exception should have been thrown");
@@ -121,7 +121,7 @@ public class FieldLUSolverTest {
/** test solve */
@Test
public void testSolve() {
- FieldDecompositionSolver solver;
+ FieldDecompositionSolver<Fraction> solver;
solver = new FieldLUDecomposition<Fraction>(createFractionMatrix(testData))
.getSolver();
FieldMatrix<Fraction> b = createFractionMatrix(new int[][] {