Class  Description 

ImmutableSparseVector 
Immutable sparse vectors.

ImmutableVec  Deprecated
Use vectorz instead.

MutableSparseVector 
Mutable version of sparse vector.

MutableVec  Deprecated
Use vectorz instead.

SparseVector 
Readonly interface to sparse vectors.

Vec  Deprecated
Use vectorz instead.

VectorEntry 
An entry in a sparse vector.

Vectors 
Utility methods for interacting with vectors.

Enum  Description 

VectorEntry.State 
The state of an entry in a sparse vector.

Sparse vectors come in three flavors. Readonly vectors (SparseVector
);
this type is the base of the remaining types for each vector, and provides a readonly
interface to the vector. Immutable vectors (ImmutableSparseVector
) are immutable and cannot be
changed once created. They can also be freely shared between threads. Finally, mutable vectors
(MutableSparseVector
)
are mutable and not threadsafe.
This design allows readonly operations to be performed on any type of vector, while allowing components to specifically work with and store vectors guaranteed to be immutable.
The Vectors
class provides utility methods for working with vectors.