Class ArrayFromFunc<T>
A virtual read-only 1D array whose elements are provided by a function.
Inheritance
ArrayFromFunc<T>
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public class ArrayFromFunc<T> : IArray<T>, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
Constructors
ArrayFromFunc(Int32, Func<Int32, T>)
Declaration
public ArrayFromFunc(int count, Func<int, T> getItem)
Parameters
Fields
count
Declaration
Field Value
getItem
Declaration
protected Func<int, T> getItem
Field Value
Properties
Count
Declaration
public int Count { get; }
Property Value
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
Item[Int32]
Declaration
public T this[int index] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
Rank
Declaration
Property Value
Methods
Add(T)
Declaration
Parameters
Type |
Name |
Description |
T |
item |
|
Clear()
Declaration
Contains(T)
Declaration
public bool Contains(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
CopyTo(T[], Int32)
Declaration
public void CopyTo(T[] array, int arrayIndex)
Parameters
Type |
Name |
Description |
T[] |
array |
|
Int32 |
arrayIndex |
|
GetEnumerator()
Declaration
public IEnumerator<T> GetEnumerator()
Returns
GetLength(Int32)
Declaration
public int GetLength(int dimension)
Parameters
Type |
Name |
Description |
Int32 |
dimension |
|
Returns
IndexOf(T)
Declaration
public int IndexOf(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
Insert(Int32, T)
Declaration
public void Insert(int index, T item)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
T |
item |
|
Remove(T)
Declaration
public bool Remove(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
RemoveAt(Int32)
Declaration
public void RemoveAt(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Implements
Extension Methods
IEnumerableExensions.ListZip<TFirst, TSecond, TThird, TFourth, TResult>(IList<TFirst>, IList<TSecond>, IList<TThird>, IList<TFourth>, Func<TFirst, TSecond, TThird, TFourth, TResult>)