Class Array2D<T>
A two-dimensional array with value equality.
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[Serializable]
[DataContract]
public class Array2D<T> : ArrayBase<T>, CanSetAllElementsTo<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IArray2D<T>, IArray<T>, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, SettableTo<T[, ]>, SettableTo<Array2D<T>>, ICloneable, ConvertibleToArray
Type Parameters
Constructors
Array2D()
Parameterless constructor needed for serialization
Declaration
Array2D(T[,])
Declaration
public Array2D(T[, ] array)
Parameters
Type |
Name |
Description |
T[,] |
array |
|
Array2D(Array2D<T>)
Declaration
public Array2D(Array2D<T> that)
Parameters
Type |
Name |
Description |
Array2D<T> |
that |
|
Array2D(Int32, Int32)
Declaration
public Array2D(int Length0, int Length1)
Parameters
Array2D(Int32, Int32, T[])
Declaration
protected Array2D(int Length0, int Length1, T[] valuesRef)
Parameters
Type |
Name |
Description |
Int32 |
Length0 |
|
Int32 |
Length1 |
|
T[] |
valuesRef |
|
Fields
Length0
Declaration
public readonly int Length0
Field Value
Length1
Declaration
public readonly int Length1
Field Value
Properties
Item[Int32, Int32]
Declaration
public T this[int row, int column] { get; set; }
Parameters
Property Value
Rank
Declaration
public override int Rank { get; }
Property Value
Overrides
Microsoft.ML.Probabilistic.Collections.ArrayBase<T>.Rank
Methods
Clone()
Clone the array but not the items in the array.
Declaration
public virtual object Clone()
Returns
CopyTo(T[,])
Declaration
public virtual void CopyTo(T[, ] array)
Parameters
Type |
Name |
Description |
T[,] |
array |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
Microsoft.ML.Probabilistic.Collections.ArrayBase<T>.Equals(System.Object)
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
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Microsoft.ML.Probabilistic.Collections.ArrayBase<T>.GetHashCode()
GetLength(Int32)
Declaration
public override int GetLength(int dimension)
Parameters
Type |
Name |
Description |
Int32 |
dimension |
|
Returns
Overrides
Microsoft.ML.Probabilistic.Collections.ArrayBase<T>.GetLength(System.Int32)
ModifyAll<U>(U[,], Func<T, U, T>)
Declaration
public void ModifyAll<U>(U[, ] array, Func<T, U, T> converter)
Parameters
Type |
Name |
Description |
U[,] |
array |
|
Func<T, U, T> |
converter |
|
Type Parameters
ModifyAll<U, V>(U[,], V[,], Func<T, U, V, T>)
Declaration
public void ModifyAll<U, V>(U[, ] array, V[, ] array2, Func<T, U, V, T> converter)
Parameters
Type |
Name |
Description |
U[,] |
array |
|
V[,] |
array2 |
|
Func<T, U, V, T> |
converter |
|
Type Parameters
SetTo(T[,])
Declaration
public virtual void SetTo(T[, ] array)
Parameters
Type |
Name |
Description |
T[,] |
array |
|
SetTo(Array2D<T>)
Declaration
public void SetTo(Array2D<T> that)
Parameters
Type |
Name |
Description |
Array2D<T> |
that |
|
ToArray()
Declaration
Returns
ToArray<TOutput>(Converter<T, TOutput>, Array2D<T>)
Declaration
public static TOutput[, ] ToArray<TOutput>(Converter<T, TOutput> itemConverter, Array2D<T> array)
Parameters
Returns
Type |
Description |
TOutput[,] |
|
Type Parameters
ToString()
Declaration
public override string ToString()
Returns
Overrides
Microsoft.ML.Probabilistic.Collections.ArrayBase<T>.ToString()
Explicit Interface Implementations
ConvertibleToArray.ToArray()
Declaration
Array ConvertibleToArray.ToArray()
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>)