org.apache.commons.math.linear
Class ArrayFieldVectorTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.math.linear.ArrayFieldVectorTest
All Implemented Interfaces:
junit.framework.Test

public class ArrayFieldVectorTest
extends junit.framework.TestCase

Test cases for the ArrayFieldVector class.

Version:
$Revision: 783702 $ $Date: 2009-06-11 04:54:02 -0400 (Thu, 11 Jun 2009) $

Nested Class Summary
static class ArrayFieldVectorTest.FieldVectorTestImpl<T extends org.apache.commons.math.FieldElement<T>>
           
 
Field Summary
protected  org.apache.commons.math.fraction.Fraction[] dvec1
           
protected  org.apache.commons.math.fraction.Fraction[][] ma1
           
protected  org.apache.commons.math.fraction.Fraction[][] mat1
           
protected  org.apache.commons.math.fraction.Fraction[] vec_null
           
protected  org.apache.commons.math.fraction.Fraction[] vec1
           
protected  org.apache.commons.math.fraction.Fraction[] vec2
           
protected  org.apache.commons.math.fraction.Fraction[] vec3
           
protected  org.apache.commons.math.fraction.Fraction[] vec4
           
 
Constructor Summary
ArrayFieldVectorTest()
           
 
Method Summary
protected  void checkArray(String msg, org.apache.commons.math.fraction.Fraction[] m, org.apache.commons.math.fraction.Fraction[] n)
          verifies that two vectors are equals
static junit.framework.Test suite()
           
 void testBasicFunctions()
           
 void testConstructors()
           
 void testDataInOut()
           
 void testMapFunctions()
           
 void testMisc()
           
 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

ma1

protected org.apache.commons.math.fraction.Fraction[][] ma1

vec1

protected org.apache.commons.math.fraction.Fraction[] vec1

vec2

protected org.apache.commons.math.fraction.Fraction[] vec2

vec3

protected org.apache.commons.math.fraction.Fraction[] vec3

vec4

protected org.apache.commons.math.fraction.Fraction[] vec4

vec_null

protected org.apache.commons.math.fraction.Fraction[] vec_null

dvec1

protected org.apache.commons.math.fraction.Fraction[] dvec1

mat1

protected org.apache.commons.math.fraction.Fraction[][] mat1
Constructor Detail

ArrayFieldVectorTest

public ArrayFieldVectorTest()
Method Detail

suite

public static junit.framework.Test suite()

testConstructors

public void testConstructors()

testDataInOut

public void testDataInOut()

testMapFunctions

public void testMapFunctions()

testBasicFunctions

public void testBasicFunctions()

testMisc

public void testMisc()

testSerial

public void testSerial()

checkArray

protected void checkArray(String msg,
                          org.apache.commons.math.fraction.Fraction[] m,
                          org.apache.commons.math.fraction.Fraction[] n)
verifies that two vectors are equals



Copyright © 2003-2010 Apache Software Foundation. All Rights Reserved.