ILNumerics Ultimate VS

ILMathapply Method (BaseArrayDouble, BaseArrayDouble, FuncDouble, Double, Double)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Binary, elementwise, broadcasting operation: apply(A,B).

[ILNumerics Computing Engine]

Namespace:  ILNumerics
Assembly:  ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public static RetArray<double> apply(
	BaseArray<double> A,
	BaseArray<double> B,
	Func<double, double, double> func
)

Parameters

A
Type: ILNumericsBaseArrayDouble
The one array.
B
Type: ILNumericsBaseArrayDouble
The other array.
func
Type: SystemFuncDouble, Double, Double
The elementary (scalar) function to be used to perform the operation on corresponding elements of A and B.

Return Value

Type: RetArrayDouble
Result of operating elements of A and B elementwise.
Remarks

Overloads of apply(BaseArrayDouble, BaseArrayDouble, FuncDouble, Double, Double) 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(BaseArrayDouble, BaseArrayDouble, FuncDouble, Double, Double) 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(BaseArrayUMP, BaseArrayUMP, FuncUMP, UMP, UMP).

[ILNumerics Computing Engine]

See Also

Reference

MathInternal.apply``3(BaseArrayUMP, BaseArrayUMP, FuncUMP, UMP, UMP)
MathInternal.convert``2(BaseArrayUMP)