SparseT Class 
Namespace: Accord.Math
[SerializableAttribute] public sealed class Sparse<T> : IEnumerable, ICloneable, IList, ICollection, IFormattable where T : Object, IEquatable<T>
The SparseT type exposes the following members.
Name  Description  

SparseT 
Creates a sparse vector with zero elements.
 
SparseT(Int32) 
Creates a sparse vector with the maximum number of elements.
 
SparseT(Int32, T) 
Creates a sparse vector from a vector of indices
and a vector of values occuring at those indices.

Name  Description  

Indices 
Gets or sets the vector of indices indicating the location
of the nonzero elements contained in this sparse vector.
 
Item 
Gets the the value stored at position i.
 
Length 
Gets the maximum nonzero element index in the sparse vector.
 
Values 
Gets or sets the vector of values indicating which nonzero
value happens at each position indicated in Indices.

Name  Description  

Clone 
Creates a new object that is a copy of the current instance.
 
CopyTo 
Copies the elements of the ICollectionT to an Array, starting at a particular Array index.
 
Equals  Determines whether the specified object is equal to the current object. (Inherited from Object.)  
GetHashCode  Serves as the default hash function. (Inherited from Object.)  
GetType  Gets the Type of the current instance. (Inherited from Object.)  
IsFull 
Determines whether this Sparse vector has elements on all indices.
 
ToDense 
Converts this sparse vector to a dense vector of the given length.
 
ToDense(Int32) 
Converts this sparse vector to a dense vector of the given length.
 
ToSparse 
Converts this sparse vector to a sparse representation where
the indices are intertwined with their corresponding values.
 
ToString 
Returns a String that represents this instance.
(Overrides ObjectToString.)  
ToString(String, IFormatProvider) 
Returns a String that represents this instance.

Name  Description  

(SparseT to Array) 
Performs an implicit conversion from SparseT to Array.

Name  Description  

ApplyT, TResult(FuncT, TResult)  Overloaded.
Applies a function to every element of the array.
(Defined by Matrix.)  
ApplyT, TResult(FuncT, TResult, TResult)  Overloaded.
Applies a function to every element of the array.
(Defined by Matrix.)  
HasMethod 
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)  
IsEqual 
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.)  
SetEqualsT 
Compares two enumerables for set equality. Two
enumerables are set equal if they contain the
same elements, but not necessarily in the same
order.
(Defined by Matrix.)  
ShuffleT 
Shuffles a collection.
(Defined by Vector.)  
To(Type)  Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)  
ToT  Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) 