Class ArrayFromFunc2D<T>
A virtual read-only 2D array whose elements are provided by a function.
Inheritance
ArrayFromFunc2D<T>
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public class ArrayFromFunc2D<T> : IArray2D<T>, IArray<T>, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
Constructors
ArrayFromFunc2D(Int32, Int32, Func<Int32, Int32, T>)
Declaration
public ArrayFromFunc2D(int length0, int length1, Func<int, int, T> getItem)
Parameters
Fields
getItem
Declaration
protected Func<int, int, T> getItem
Field Value
Length0
Declaration
public readonly int Length0
Field Value
Length1
Declaration
public readonly int Length1
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
Item[Int32, Int32]
Declaration
public T this[int row, int column] { get; set; }
Parameters
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>)