org.apache.commons.math3.linear
Class SparseRealVectorTest

java.lang.Object
  extended by org.apache.commons.math3.linear.RealVectorAbstractTest
      extended by org.apache.commons.math3.linear.SparseRealVectorTest

public class SparseRealVectorTest
extends RealVectorAbstractTest

Test cases for the OpenMapRealVector class.

Version:
$Id: SparseRealVectorTest.java 1361170 2012-07-13 11:37:40Z celestin $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.commons.math3.linear.RealVectorAbstractTest
RealVectorAbstractTest.RealVectorTestImpl
 
Constructor Summary
SparseRealVectorTest()
           
 
Method Summary
 RealVector create(double[] data)
          Creates a new instance of RealVector, with specified entries.
 void testConcurrentModification()
           
 void testConstructors()
           
 void testMap()
          XXX This test is disabled because it currently fails.
 void testMapToSelf()
          XXX This test is disabled because it currently fails.
 
Methods inherited from class org.apache.commons.math3.linear.RealVectorAbstractTest
createAlien, getPreferredEntryValue, testAddDimensionMismatch, testAddMixedTypes, testAddSameType, testAddToEntry, testAddToEntryInvalidIndex1, testAddToEntryInvalidIndex2, testAppendScalar, testAppendVector, testCombineDimensionMismatchMixedTypes, testCombineDimensionMismatchSameType, testCombineMixedTypes, testCombineSameType, testCombineToSelfDimensionMismatchMixedTypes, testCombineToSelfDimensionMismatchSameType, testCombineToSelfMixedTypes, testCombineToSelfSameType, testCopy, testCosineDimensionMismatch, testCosineLeftNullVector, testCosineMixedTypes, testCosineRightNullVector, testCosineSameType, testDotProductDimensionMismatchMixedTypes, testDotProductDimensionMismatchSameType, testDotProductMixedTypes, testDotProductSameType, testEbeDivideDimensionMismatch, testEbeDivideMixedTypes, testEbeDivideSameType, testEbeMultiplyDimensionMismatch, testEbeMultiplyMixedTypes, testEbeMultiplySameType, testEquals, testGetDimension, testGetDistanceDimensionMismatch, testGetDistanceMixedTypes, testGetDistanceSameType, testGetEntry, testGetEntryInvalidIndex1, testGetEntryInvalidIndex2, testGetL1DistanceDimensionMismatch, testGetL1DistanceMixedTypes, testGetL1DistanceSameType, testGetL1Norm, testGetLInfDistanceDimensionMismatch, testGetLInfDistanceMixedTypes, testGetLInfDistanceSameType, testGetLInfNorm, testGetNorm, testGetSubVector, testGetSubVectorInvalidIndex1, testGetSubVectorInvalidIndex2, testGetSubVectorInvalidIndex3, testGetSubVectorInvalidIndex4, testIsInfinite, testIsNaN, testIterator, testMapAdd, testMapAddToSelf, testMapDivide, testMapDivideToSelf, testMapMultiply, testMapMultiplyToSelf, testMapSubtract, testMapSubtractToSelf, testMinMax, testOuterProductMixedTypes, testOuterProductSameType, testProjectionDimensionMismatch, testProjectionMixedTypes, testProjectionNullVector, testProjectionSameType, testSerial, testSet, testSetEntry, testSetEntryInvalidIndex1, testSetEntryInvalidIndex2, testSetSubVectorInvalidIndex1, testSetSubVectorInvalidIndex2, testSetSubVectorInvalidIndex3, testSetSubVectorMixedType, testSetSubVectorSameType, testSubtractDimensionMismatch, testSubtractMixedTypes, testSubtractSameType, testToArray, testUnitize, testUnitizeNullVector, testUnitVector, testUnitVectorNullVector, testWalkInDefaultOrderChangingVisitor1, testWalkInDefaultOrderChangingVisitor2, testWalkInDefaultOrderChangingVisitor3, testWalkInDefaultOrderPreservingVisitor1, testWalkInDefaultOrderPreservingVisitor2, testWalkInDefaultOrderPreservingVisitor3, testWalkInOptimizedOrderChangingVisitor1, testWalkInOptimizedOrderChangingVisitor2, testWalkInOptimizedOrderChangingVisitor3, testWalkInOptimizedOrderPreservingVisitor1, testWalkInOptimizedOrderPreservingVisitor2, testWalkInOptimizedOrderPreservingVisitor3
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SparseRealVectorTest

public SparseRealVectorTest()
Method Detail

create

public RealVector create(double[] data)
Description copied from class: RealVectorAbstractTest
Creates a new instance of RealVector, with specified entries. The returned vector must be of the type currently tested. It should be noted that some tests assume that no references to the specified double[] are kept in the returned object: if necessary, defensive copy of this array should be made.

Specified by:
create in class RealVectorAbstractTest
Parameters:
data - the entries of the vector to be created
Returns:
a new RealVector of the type to be tested

testConstructors

public void testConstructors()

testConcurrentModification

public void testConcurrentModification()

testMap

public void testMap()
XXX This test is disabled because it currently fails. The bug must still be fixed in the sparse vector implementation. When this is done, this override should be deleted.

Overrides:
testMap in class RealVectorAbstractTest

testMapToSelf

public void testMapToSelf()
XXX This test is disabled because it currently fails. The bug must still be fixed in the sparse vector implementation. When this is done, this override should be deleted.

Overrides:
testMapToSelf in class RealVectorAbstractTest


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.