## gov.sandia.cognition.math.matrix Interface InfiniteVector<KeyType>

Type Parameters:
`KeyType` - The type of the keys (indices) into the infinite dimensional vector.
All Superinterfaces:
Cloneable, CloneableSerializable, Iterable<InfiniteVector.Entry<KeyType>>, NumericMap<KeyType>, Ring<InfiniteVector<KeyType>>, ScalarMap<KeyType>, Serializable, VectorSpace<InfiniteVector<KeyType>,InfiniteVector.Entry<KeyType>>
All Known Implementing Classes:
DefaultInfiniteVector

`public interface InfiniteVector<KeyType>extends VectorSpace<InfiniteVector<KeyType>,InfiniteVector.Entry<KeyType>>, ScalarMap<KeyType>`

A Vector that has a potentially infinite number of indices (keys), but will only contain a countable number in any instance.

Since:
3.2.1
Author:
Justin Basilico, Kevin R. Dixon

Nested Class Summary
`static interface` `InfiniteVector.Entry<KeyType>`
Entry for a InfiniteVector

Method Summary
` void` `compact()`
Removes the zero elements from the vector.

Methods inherited from interface gov.sandia.cognition.math.matrix.VectorSpace
`angle, cosine, dotProduct, euclideanDistance, euclideanDistanceSquared, isUnitVector, isUnitVector, norm, norm1, norm2, norm2Squared, normInfinity, sum, unitVector, unitVectorEquals`

Methods inherited from interface gov.sandia.cognition.math.Ring
`clone, dotTimes, dotTimesEquals, equals, equals, isZero, isZero, minus, minusEquals, negative, negativeEquals, plus, plusEquals, scale, scaledMinus, scaledMinusEquals, scaledPlus, scaledPlusEquals, scaleEquals, zero`

Methods inherited from interface java.lang.Iterable
`iterator`

Methods inherited from interface gov.sandia.cognition.collection.ScalarMap
`asMap, decrement, decrement, decrementAll, decrementAll, entrySet, get, getMaxValue, getMinValue, increment, increment, incrementAll, incrementAll, set, setAll`

Methods inherited from interface gov.sandia.cognition.collection.NumericMap
`clear, containsKey, getMaxValueKey, getMaxValueKeys, getMinValueKey, getMinValueKeys, isEmpty, keySet, size`

Method Detail

### compact

`void compact()`
Removes the zero elements from the vector.