|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.math.linear.SparseRealVectorTest
public class SparseRealVectorTest
Test cases for the OpenMapRealVector
class.
Nested Class Summary | |
---|---|
static class |
SparseRealVectorTest.SparseRealVectorTestImpl
|
Field Summary | |
---|---|
protected Double[] |
dvec1
|
protected double |
entryTolerance
|
protected double[][] |
ma1
|
protected double[][] |
mat1
|
protected double |
normTolerance
|
protected double[] |
vec_null
|
protected double[] |
vec1
|
protected double[] |
vec2
|
protected double[] |
vec3
|
protected double[] |
vec4
|
Constructor Summary | |
---|---|
SparseRealVectorTest()
|
Method Summary | |
---|---|
protected void |
assertClose(String msg,
double[] m,
double[] n,
double tolerance)
verifies that two vectors are close (sup norm) |
static junit.framework.Test |
suite()
|
void |
testBasicFunctions()
|
void |
testConstructors()
|
void |
testDataInOut()
|
void |
testMapFunctions()
|
void |
testMisc()
|
void |
testPredicates()
|
void |
testSerial()
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected double[][] ma1
protected double[] vec1
protected double[] vec2
protected double[] vec3
protected double[] vec4
protected double[] vec_null
protected Double[] dvec1
protected double[][] mat1
protected double entryTolerance
protected double normTolerance
Constructor Detail |
---|
public SparseRealVectorTest()
Method Detail |
---|
public static junit.framework.Test suite()
public void testConstructors()
public void testDataInOut()
public void testMapFunctions()
public void testBasicFunctions()
public void testMisc()
public void testPredicates()
public void testSerial()
protected void assertClose(String msg, double[] m, double[] n, double tolerance)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |