Class SparseObjectList<T>
variant of SparseList for class objects, then "zero" is null
TODO: can we combine these classes somehow?
Inheritance
SparseObjectList<T>
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class SparseObjectList<T>
where T : class
Type Parameters
Constructors
SparseObjectList(Int32, Int32)
Declaration
public SparseObjectList(int MaxIndex, int SubsetCountEst)
Parameters
Type |
Name |
Description |
Int32 |
MaxIndex |
|
Int32 |
SubsetCountEst |
|
Properties
Item[Int32]
Declaration
public T this[int idx] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
idx |
|
Property Value
Methods
Clear()
Declaration
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