Search Results for

    Show / Hide Table of Contents

    Class Array<T>

    A one-dimensional array with value equality.

    Inheritance
    Object
    ArrayBase<T>
    Array<T>
    DistributionArray<T>
    Implements
    IArray<T>
    IList<T>
    ICollection<T>
    CanSetAllElementsTo<T>
    IReadOnlyList<T>
    IReadOnlyCollection<T>
    IEnumerable<T>
    IEnumerable
    SettableTo<T[]>
    SettableTo<Array<T>>
    ICloneable
    ConvertibleToArray
    Inherited Members
    ArrayBase<T>.array
    ArrayBase<T>.Item[Int32]
    ArrayBase<T>.IndexOf(T)
    ArrayBase<T>.Insert(Int32, T)
    ArrayBase<T>.RemoveAt(Int32)
    ArrayBase<T>.Add(T)
    ArrayBase<T>.Clear()
    ArrayBase<T>.Contains(T)
    ArrayBase<T>.CopyTo(T[], Int32)
    ArrayBase<T>.Count
    ArrayBase<T>.IsReadOnly
    ArrayBase<T>.Remove(T)
    ArrayBase<T>.GetEnumerator()
    ArrayBase<T>.IEnumerable.GetEnumerator()
    ArrayBase<T>.ToString()
    ArrayBase<T>.CheckCompatible(IArray<T>)
    ArrayBase<T>.SetAllElementsTo(T)
    ArrayBase<T>.FindIndex(Predicate<T>)
    ArrayBase<T>.ForEach(Action<T>)
    ArrayBase<T>.ForEach<U>(U[], Action<T, U>)
    ArrayBase<T>.ForEach<U, V>(U[], V[], Action<T, U, V>)
    ArrayBase<T>.SetToFunction<U>(U[], Func<U, T>)
    ArrayBase<T>.SetToFunction<U>(ArrayBase<U>, Func<U, T>)
    ArrayBase<T>.SetToFunction<U, V>(ArrayBase<U>, V[], Func<U, V, T>)
    ArrayBase<T>.SetToFunction<U, V, W>(ArrayBase<U>, V[], W[], Func<U, V, W, T>)
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: Microsoft.ML.Probabilistic.Collections
    Assembly: Microsoft.ML.Probabilistic.dll
    Syntax
    [Serializable]
    [DataContract]
    public class Array<T> : ArrayBase<T>, IArray<T>, IList<T>, ICollection<T>, CanSetAllElementsTo<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, SettableTo<T[]>, SettableTo<Array<T>>, ICloneable, ConvertibleToArray
    Type Parameters
    Name Description
    T

    Constructors

    Array()

    Parameterless constructor needed for serialization

    Declaration
    protected Array()

    Array(T[])

    Declaration
    public Array(T[] array)
    Parameters
    Type Name Description
    T[] array

    Array(Array<T>)

    Copy constructor.

    Declaration
    public Array(Array<T> that)
    Parameters
    Type Name Description
    Array<T> that

    Array(Int32)

    Declaration
    public Array(int length)
    Parameters
    Type Name Description
    Int32 length

    Properties

    Rank

    Declaration
    public override int Rank { get; }
    Property Value
    Type Description
    Int32
    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
    Type Description
    Object

    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
    Type Description
    Boolean
    Overrides
    Microsoft.ML.Probabilistic.Collections.ArrayBase<T>.Equals(System.Object)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    Microsoft.ML.Probabilistic.Collections.ArrayBase<T>.GetHashCode()

    GetLength(Int32)

    Declaration
    public override int GetLength(int dimension)
    Parameters
    Type Name Description
    Int32 dimension
    Returns
    Type Description
    Int32
    Overrides
    Microsoft.ML.Probabilistic.Collections.ArrayBase<T>.GetLength(System.Int32)

    SetTo(T[])

    Declaration
    public virtual void SetTo(T[] array)
    Parameters
    Type Name Description
    T[] array

    SetTo(Array<T>)

    Declaration
    public void SetTo(Array<T> that)
    Parameters
    Type Name Description
    Array<T> that

    ToArray()

    Declaration
    public T[] ToArray()
    Returns
    Type Description
    T[]

    ToArray<TOutput>(Converter<T, TOutput>, Array<T>)

    Declaration
    public static TOutput[] ToArray<TOutput>(Converter<T, TOutput> itemConverter, Array<T> array)
    Parameters
    Type Name Description
    Converter<T, TOutput> itemConverter
    Array<T> array
    Returns
    Type Description
    TOutput[]
    Type Parameters
    Name Description
    TOutput

    Explicit Interface Implementations

    ConvertibleToArray.ToArray()

    Declaration
    Array ConvertibleToArray.ToArray()
    Returns
    Type Description
    Array

    Implements

    IArray<T>
    System.Collections.Generic.IList<T>
    System.Collections.Generic.ICollection<T>
    CanSetAllElementsTo<T>
    System.Collections.Generic.IReadOnlyList<T>
    System.Collections.Generic.IReadOnlyCollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    SettableTo<T>
    SettableTo<T>
    System.ICloneable
    ConvertibleToArray

    Extension Methods

    CollectionExtensions.AddRange<T>(ICollection<T>, IEnumerable<T>)
    CollectionExtensions.ContainsAll<T>(ICollection<T>, IEnumerable<T>)
    CollectionExtensions.ContainsAny<T>(ICollection<T>, IEnumerable<T>)
    EnumerableExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
    EnumerableExtensions.ForEach<T>(IEnumerable, Action<T>)
    EnumerableExtensions.ForEach<T>(IEnumerable<T>, Action<Int32, T>)
    EnumerableExtensions.ForEach<T>(IEnumerable, Action<Int32, T>)
    EnumerableExtensions.Sum<TSource>(IEnumerable<TSource>, Func<TSource, UInt32>)
    EnumerableExtensions.Sum<TSource>(IEnumerable<TSource>, Func<TSource, UInt64>)
    EnumerableExtensions.ValueEquals<T>(IEnumerable<T>, IEnumerable<T>)
    EnumerableExtensions.IndexOf<T>(IEnumerable<T>, T)
    EnumerableExtensions.IndexOf<T>(IEnumerable, T)
    EnumerableExtensions.FindIndex<T>(IEnumerable<T>, Predicate<T>)
    EnumerableExtensions.FindIndex<T>(IEnumerable, Predicate<T>)
    EnumerableExtensions.FindAllIndex<T>(IEnumerable<T>, Predicate<T>)
    EnumerableExtensions.IndexOfAll<T>(IEnumerable<T>, T)
    EnumerableExtensions.Skip<T>(IEnumerable<T>, Int32, out List<T>)
    EnumerableExtensions.CopyTo<T>(IEnumerable<T>, T[], Int32)
    EnumerableExtensions.ToReadOnlyList<T>(IEnumerable<T>)
    IEnumerableExensions.EnumerableReduce<T, TRes>(IEnumerable<T>, TRes, Func<TRes, T, TRes>, Func<TRes, T, Int32, TRes>)
    IEnumerableExensions.EnumerableSum<T>(IEnumerable<T>, Func<T, Double>)
    IEnumerableExensions.ListZip<TFirst, TSecond, TResult>(IList<TFirst>, IEnumerable<TSecond>, Func<TFirst, TSecond, TResult>)
    IEnumerableExensions.ListZip<TFirst, TSecond, TThird, TResult>(IList<TFirst>, IEnumerable<TSecond>, IEnumerable<TThird>, Func<TFirst, TSecond, TThird, TResult>)
    IEnumerableExensions.ListZip<TFirst, TSecond, TThird, TFourth, TResult>(IList<TFirst>, IList<TSecond>, IList<TThird>, IList<TFourth>, Func<TFirst, TSecond, TThird, TFourth, TResult>)
    IListExtensions.IsSparse<T>(IList<T>)
    IListExtensions.ListSelect<T, T2>(IList<T>, Func<T, T2>)
    IListExtensions.ListReduce<T, TRes>(IList<T>, TRes, Func<TRes, T, TRes>)
    IListExtensions.ListReduce<T, T2, TRes>(IList<T>, IEnumerable<T2>, TRes, Func<TRes, T, T2, TRes>)
    IListExtensions.SetTo<T>(IList<T>, IEnumerable<T>)
    IListExtensions.AsReadOnly<T>(IList<T>)
    ReadOnlyArray.ToReadOnlyArray<T>(IEnumerable<T>)
    In This Article
    Back to top Copyright © .NET Foundation. All rights reserved.