Proxem.NumNet by Guillaume Wenzek, Jocelyn Coulmance, Thomas Perrais, Jean-Marc Marty

<PackageReference Include="Proxem.NumNet" Version="1.5.0" />

 Array<Type>

public class Array<Type> : Strided<Type>, IEnumerable<Type>, IEnumerable, IIndexable<int, Type>
N-dimensionnal arrays. Inspired from NumPy ndarray.
public Type[] Values

Underlying data

public FastArray<Type> FastArray { get; }

public IIndexable<int, Type> Item { get; }

A view on the Array that can only be indexed by coordinates (instead of slices)

public Array<Type> this[int[] singletons] { get; set; }

Optimized access to a slice of an Array for singletons

public Array<Type> this[Slice[] slices] { get; set; }

Access to a slice of an Array

public Array<Type> this[Array<int>[] indexArrays] { get; }

Reads the array with advanced-indexing

public Array<Type> T { get; }

The transposed of this Array. Reverse the axis.

public Array(int[] shape, Type[] values, int offset, int[] stride)

public Array(int[] shape, Type[] values)

public Array(int[] shape)

public static Array<Type> op_Addition(Array<Type> a, Array<Type> b)

Elementwise addition

public static Array<Type> op_Addition(Type a, Array<Type> b)

public static Array<Type> op_Addition(Array<Type> a, Type b)

Elementwise subtraction

public static Array<Type> op_Division(Array<Type> a, Array<Type> b)

Elementwise division

public static Array<Type> op_Division(Array<Type> a, Type b)

Division with a scalar

public static Array<Type> op_Division(Type a, Array<Type> b)

Division with a scalar

public static Type op_Explicit(Array<Type> a)

Explicit conversion from Array to a scalar

public static Type[] op_Explicit(Array<Type> a)

Explicit conversion from Array to System.Array

public static Array<Type> op_GreaterThan(Array<Type> a, Array<Type> b)

Elementwise comparaison (1 for true, 0 for false)

public static Array<Type> op_GreaterThan(Array<Type> a, Type b)

public static Array<Type> op_GreaterThan(Type a, Array<Type> b)

public static Array<Type> op_GreaterThanOrEqual(Array<Type> a, Array<Type> b)

Elementwise comparaison (1 for true, 0 for false)

public static Array<Type> op_GreaterThanOrEqual(Array<Type> a, Type b)

public static Array<Type> op_GreaterThanOrEqual(Type a, Array<Type> b)

public static Array<Type> op_Implicit(Type a)

Implicit conversion from a Type to Array<Type>

public static Array<Type> op_Implicit(Type[] a)

Implicit conversion from System.Array to Array

public static Array<Type> op_Implicit(Type[,] a)

Implicit conversion from multidimensionnal array to Array

public static Array<Type> op_Implicit(Type[,,] a)

Implicit conversion from multidimensionnal array to Array

public static Array<Type> op_Implicit(Type[,,,] a)

Implicit conversion from multidimensionnal array to Array

public static Array<Type> op_LessThan(Array<Type> a, Array<Type> b)

Elementwise comparaison (1 for true, 0 for false)

public static Array<Type> op_LessThan(Array<Type> a, Type b)

public static Array<Type> op_LessThan(Type a, Array<Type> b)

public static Array<Type> op_LessThanOrEqual(Array<Type> a, Array<Type> b)

Elementwise comparaison (1 for true, 0 for false)

public static Array<Type> op_LessThanOrEqual(Array<Type> a, Type b)

public static Array<Type> op_LessThanOrEqual(Type a, Array<Type> b)

public static Array<Type> op_Multiply(Array<Type> a, Array<Type> b)

Elementwise multiplication

public static Array<Type> op_Multiply(Array<Type> a, Type b)

Multiplication with a scalar

public static Array<Type> op_Multiply(Type a, Array<Type> b)

Optimized multiplication with a scalar

public static Array<Type> op_Subtraction(Array<Type> a, Array<Type> b)

Elementwise subtraction

public static Array<Type> op_Subtraction(Type a, Array<Type> b)

Elementwise subtraction

public static Array<Type> op_Subtraction(Array<Type> a, Type b)

Elementwise subtraction

public static Array<Type> op_UnaryNegation(Array<Type> a)

Elementwise negation

public Array<T> As<T>(Array<T> result = null)

Casts all the elements of the array to the given type

public Array<R> Empty<R>()

Creates an empty array with the same shape

public Array<Type> Empty()

Creates an empty array with the same shape and same type

public bool Equals(Array<Type> that)

public void FillWith(IEnumerable<Type> input)

Fills this array with the given values

public void FillWith(IEnumerator<Type> it)

Fills this array with the given values

public void FillWith(Type value)

public IEnumerator<Type> GetEnumerator()

public Array<Type> IndexWith(Array<int>[] indexArrays, Array<Type> result = null)

Advanced indexing

public Array<Type> Insert(Array<Type> other, int index, int axis, Array<Type> result = null)

public bool IsContiguous()

public bool IsTransposed()

public int LastStride()

public Array<R> Map<R>(Func<Type, R> f, Array<R> result = null)

public Array<Type> MinifyDim()

public Array<Type> Reshape(int[] shape)

public Array<Type> Reshape(int[] shape, bool allowCopy = true, bool forceCopy = false)

Reshapes the array to the given shape. The reshape operation tries to be a O(1) and to reuse the underlying values. But if the data is not contiguous (for instance if this array is transposed), the reshape need to copy the values. (Note: like in NumPy the default is allowCopy=true). If one of the shape value is -1, will try to guess the correct value.

public Array<Type> Transpose()

public Array<Type> Transpose(int[] axesPerm)

public Array<R> Zip<T, R>(Array<T> that, Func<Type, T, R> f, Array<R> result)

public Array<Type> ZipInPlace<T1>(Array<T1> that, Func<Type, T1, Type> f)

public Array<Type> ZipInPlace<T1, T2>(Array<T1> that, Array<T2> andThat, Func<Type, T1, T2, Type> f)