org.apache.commons.math3.linear
Class SparseFieldVectorTest
java.lang.Object
org.apache.commons.math3.linear.SparseFieldVectorTest
public class SparseFieldVectorTest
- extends Object
Test cases for the SparseFieldVector class.
- Version:
- $Id: SparseFieldVectorTest.java 1244107 2012-02-14 16:17:55Z erans $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ma1
protected Fraction[][] ma1
vec1
protected Fraction[] vec1
vec2
protected Fraction[] vec2
vec3
protected Fraction[] vec3
vec4
protected Fraction[] vec4
vec_null
protected Fraction[] vec_null
dvec1
protected Fraction[] dvec1
mat1
protected Fraction[][] mat1
entryTolerance
protected double entryTolerance
normTolerance
protected double normTolerance
field
protected FractionField field
SparseFieldVectorTest
public SparseFieldVectorTest()
testMapFunctions
public void testMapFunctions()
throws FractionConversionException
- Throws:
FractionConversionException
testBasicFunctions
public void testBasicFunctions()
throws FractionConversionException
- Throws:
FractionConversionException
testOuterProduct
public void testOuterProduct()
testMisc
public void testMisc()
testPredicates
public void testPredicates()
assertEquals
protected void assertEquals(String msg,
Fraction[] m,
Fraction[] n)
- verifies that two vectors are close (sup norm)
assertClose
protected void assertClose(String msg,
Fraction[] m,
Fraction[] n,
double tolerance)
- verifies that two vectors are close (sup norm)
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.