mirror of
https://github.com/apache/commons-math.git
synced 2025-02-06 18:18:56 +00:00
Unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1197466 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2ea244d3f1
commit
68d4f832e3
@ -89,7 +89,7 @@ public final class FastHadamardTransformerTest {
|
|||||||
double dResult[] = transformer.transform(dX);
|
double dResult[] = transformer.transform(dX);
|
||||||
for (int i = 0; i < dResult.length; i++) {
|
for (int i = 0; i < dResult.length; i++) {
|
||||||
// compare computed results to precomputed results
|
// compare computed results to precomputed results
|
||||||
Assert.assertTrue(Precision.equals((double) y[i], dResult[i], 1));
|
Assert.assertTrue(Precision.equals(y[i], dResult[i], 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -118,7 +118,7 @@ public final class FastHadamardTransformerTest {
|
|||||||
double dResult[] = transformer.inversetransform(dY);
|
double dResult[] = transformer.inversetransform(dY);
|
||||||
for (int i = 0; i < dResult.length; i++) {
|
for (int i = 0; i < dResult.length; i++) {
|
||||||
// compare computed results to precomputed results
|
// compare computed results to precomputed results
|
||||||
Assert.assertTrue(Precision.equals((double) x[i], dResult[i], 1));
|
Assert.assertTrue(Precision.equals(x[i], dResult[i], 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user