Class SparseList<T>
Inheritance
SparseList<T>
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class SparseList<T>
where T : IEquatable<T>
Type Parameters
Constructors
SparseList(Int32, Int32, T)
Declaration
public SparseList(int MaxIndex, int SubsetCountEst, T ZeroValue)
Parameters
Type |
Name |
Description |
Int32 |
MaxIndex |
|
Int32 |
SubsetCountEst |
|
T |
ZeroValue |
|
Properties
Item[Int32]
Declaration
public T this[int idx] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
idx |
|
Property Value
Methods
Count(Func<T, Boolean>)
Declaration
public int Count(Func<T, bool> CountF)
Parameters
Returns
NonZeroValues()
Declaration
public IEnumerable<KeyValuePair<int, T>> NonZeroValues()
Returns
Values()
This enumeration will return pairs [index,0] for dense case
Declaration
public IEnumerable<KeyValuePair<int, T>> Values()
Returns