MATH-795: in RealVectorAbstractTest, removed unused method assertClose.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1358353 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8c10a80525
commit
3621d9d559
|
@ -167,17 +167,6 @@ public abstract class RealVectorAbstractTest {
|
||||||
return 0.0;
|
return 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** verifies that two vectors are close (sup norm) */
|
|
||||||
protected void assertClose(String msg, double[] m, double[] n,
|
|
||||||
double tolerance) {
|
|
||||||
if (m.length != n.length) {
|
|
||||||
Assert.fail("vectors have different lengths");
|
|
||||||
}
|
|
||||||
for (int i = 0; i < m.length; i++) {
|
|
||||||
Assert.assertEquals(msg + " " + i + " elements differ", m[i],n[i],tolerance);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public RealVectorAbstractTest() {
|
public RealVectorAbstractTest() {
|
||||||
/*
|
/*
|
||||||
* Make sure that x, y, z are three different values. Also, x is the
|
* Make sure that x, y, z are three different values. Also, x is the
|
||||||
|
|
Loading…
Reference in New Issue