Class ArrayAsList<T>
Wraps a multidimensional array to look like a linear list.
Inheritance
ArrayAsList<T>
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public class ArrayAsList<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, ConvertibleToArray
Type Parameters
Constructors
ArrayAsList(Array)
Declaration
public ArrayAsList(Array array)
Parameters
Type |
Name |
Description |
Array |
array |
|
ArrayAsList(Int32)
Declaration
public ArrayAsList(int length)
Parameters
Type |
Name |
Description |
Int32 |
length |
|
ArrayAsList(Int32, Int32)
Declaration
public ArrayAsList(int length0, int length1)
Parameters
ArrayAsList(Int32[])
Declaration
public ArrayAsList(params int[] lengths)
Parameters
Type |
Name |
Description |
Int32[] |
lengths |
|
Fields
strides
Declaration
Field Value
Properties
Array
Declaration
public Array Array { get; }
Property Value
Array1D
Declaration
public T[] Array1D { get; }
Property Value
Array2D
Declaration
public T[, ] Array2D { get; }
Property Value
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 i, int j] { get; set; }
Parameters
Property Value
Item[Int32[]]
Declaration
public T this[params int[] index] { get; set; }
Parameters
Type |
Name |
Description |
Int32[] |
index |
|
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 |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
FindIndex(Predicate<T>)
Declaration
public int FindIndex(Predicate<T> predicate)
Parameters
Returns
ForEach(Action<T>)
Declaration
public void ForEach(Action<T> action)
Parameters
Type |
Name |
Description |
Action<T> |
action |
|
ForEach(Action<Int32, T>)
Declaration
public void ForEach(Action<int, T> action)
Parameters
ForEach(Array, Action<T, T>)
Declaration
public void ForEach(Array a, Action<T, T> action)
Parameters
ForEach(Array, Array, Action<T, T, T>)
Declaration
public void ForEach(Array a, Array b, Action<T, T, T> action)
Parameters
ForEach<U>(Array, Action<T, U>)
Declaration
public void ForEach<U>(Array a, Action<T, U> action)
Parameters
Type Parameters
GetEnumerator()
Declaration
public IEnumerator<T> GetEnumerator()
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
GetLength(Int32)
Declaration
public int GetLength(int dimension)
Parameters
Type |
Name |
Description |
Int32 |
dimension |
|
Returns
GetLengths()
Declaration
public int[] GetLengths()
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 |
|
ModifyAll(Array, Array, Func<T, T, T, T>)
Declaration
public void ModifyAll(Array a, Array b, Func<T, T, T, T> converter)
Parameters
ModifyAll(Array, Func<T, T, T>)
Declaration
public void ModifyAll(Array a, Func<T, T, T> converter)
Parameters
Type |
Name |
Description |
Array |
a |
|
Func<T, T, T> |
converter |
|
ModifyAll(Func<T, T>)
Declaration
public void ModifyAll(Func<T, T> converter)
Parameters
Type |
Name |
Description |
Func<T, T> |
converter |
|
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 |
|
ToArray()
Declaration
Returns
ToArray<TRet>()
Declaration
public TRet ToArray<TRet>()
Returns
Type Parameters
ToString()
Declaration
public override string ToString()
Returns
Overrides
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>)