[ILNumerics Computing Engine]
Namespace: ILNumerics
Assembly: ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
public static RetArray<int> apply( BaseArray<int> A, BaseArray<int> B, Func<int, int, int> func )
Parameters
- A
- Type: ILNumerics.BaseArray<Int32>
The one array. - B
- Type: ILNumerics.BaseArray<Int32>
The other array. - func
- Type: System.Func<Int32, Int32, Int32>
The elementary (scalar) function to be used to perform the operation on corresponding elements of A and B.
Return Value
Type: RetArray<Int32>Result of operating elements of A and B elementwise.
Overloads of apply(BaseArray<Int32> , BaseArray<Int32> , Func<Int32, Int32, Int32> ) expect two arrays of broadcastable size with the same element types. They perform a mapping operation on corresponding elements of A and B by evaluating func for each element of the resulting array.
Overloads of apply(BaseArray<Int32> , BaseArray<Int32> , Func<Int32, Int32, Int32> ) perform fastest where the element type of the input and the output arrays match. Such overloads exist for all numeric value-typed element types.
The function is efficiently parallelized and func is evaluated from multiple threads. Make sure that func is threadsafe!
For more flexibility a generic overload exist which allows the element types of A, B as well as the array returned to be individual different. See: apply``3(BaseArray<UMP>, BaseArray<UMP>, Func<UMP, UMP, UMP>).
[ILNumerics Computing Engine]