ArrayMath Class

Contains methods that perform operations on arrays.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static class ArrayMath
Inheritance
Object  →  ArrayMath

Methods

AbsoluteMax Returns the value of the element in an array that has the largest absolute value.
AbsoluteMaxIndex Returns the index of the element in an array that has the largest absolute value.
AbsoluteMin Returns the value of the element in an array that has the smallest absolute value.
AbsoluteMinIndex Returns the index of the element in an array that has the smallest absolute value.
AsVector<T>(T[], ArrayMutability) Converts an array to a vector without copying.
AsVector<T>(T[], Int32, ArrayMutability) Converts an array to a vector without copying.
Max Returns the value of the largest element in an array.
MaxIndex Returns the index of the largest element in an array.
Min Returns the value of the smallest element in an array.
MinIndex Returns the index of the smallest element in an array.
Sum(Double[]) Computes the sum of the elements of an array.
Sum(Double[], Int32, Int32) Computes the sum of the elements in a segment of an array.
Sum<T>(IEnumerable<T>) Computes the sum of the sequence of values.
Sum<T, U>(IEnumerable<T>, Func<T, U>) Computes the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.
SumIf(Double[], Func<Double, Boolean>) Computes the sum of the elements in an array that satisfy the specified predicate.
SumIf(Double[], Func<Double, Int32, Boolean>) Computes the sum of the elements in an array that satisfy the specified predicate.
ToIndex Converts a Index to a regular 0-based index.
ToRange Converts a Range to a Range.
ToSlice Converts a Range to a Slice.
ToVector<T>(T[], ArrayMutability) Converts an array to a vector with copying.
ToVector<T>(T[], Int32, ArrayMutability) Converts an array to a vector with copying.

See Also