Class ArrayBase<T>
The base class for arrays of any rank using value equality.
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[Serializable]
[DataContract]
public abstract class ArrayBase<T> : IArray<T>, IList<T>, ICollection<T>, CanSetAllElementsTo<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
Fields
array
Declaration
[DataMember]
protected T[] array
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
public abstract int Rank { get; }
Property Value
Methods
Add(T)
Declaration
Parameters
Type |
Name |
Description |
T |
item |
|
CheckCompatible(IArray<T>)
Declaration
protected void CheckCompatible(IArray<T> that)
Parameters
Type |
Name |
Description |
IArray<T> |
that |
|
Clear()
Declaration
Contains(T)
Declaration
public bool Contains(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
CopyTo(T[], Int32)
Declaration
public virtual 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<U>(U[], Action<T, U>)
Declaration
public void ForEach<U>(U[] array, Action<T, U> action)
Parameters
Type |
Name |
Description |
U[] |
array |
|
Action<T, U> |
action |
|
Type Parameters
ForEach<U, V>(U[], V[], Action<T, U, V>)
Declaration
public void ForEach<U, V>(U[] array, V[] array2, Action<T, U, V> action)
Parameters
Type |
Name |
Description |
U[] |
array |
|
V[] |
array2 |
|
Action<T, U, V> |
action |
|
Type Parameters
GetEnumerator()
Declaration
public IEnumerator<T> GetEnumerator()
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
GetLength(Int32)
Declaration
public abstract 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 |
|
SetAllElementsTo(T)
Declaration
public virtual void SetAllElementsTo(T value)
Parameters
Type |
Name |
Description |
T |
value |
|
SetToFunction<U>(U[], Func<U, T>)
Declaration
public void SetToFunction<U>(U[] array, Func<U, T> converter)
Parameters
Type |
Name |
Description |
U[] |
array |
|
Func<U, T> |
converter |
|
Type Parameters
SetToFunction<U>(ArrayBase<U>, Func<U, T>)
Declaration
public void SetToFunction<U>(ArrayBase<U> array, Func<U, T> converter)
Parameters
Type Parameters
SetToFunction<U, V>(ArrayBase<U>, V[], Func<U, V, T>)
Declaration
public void SetToFunction<U, V>(ArrayBase<U> array, V[] array2, Func<U, V, T> converter)
Parameters
Type |
Name |
Description |
ArrayBase<U> |
array |
|
V[] |
array2 |
|
Func<U, V, T> |
converter |
|
Type Parameters
SetToFunction<U, V, W>(ArrayBase<U>, V[], W[], Func<U, V, W, T>)
Declaration
public void SetToFunction<U, V, W>(ArrayBase<U> array, V[] array2, W[] array3, Func<U, V, W, T> converter)
Parameters
Type |
Name |
Description |
ArrayBase<U> |
array |
|
V[] |
array2 |
|
W[] |
array3 |
|
Func<U, V, W, T> |
converter |
|
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>)