ILNumerics Ultimate VS

ILMathapply Method (BaseArrayfcomplex, BaseArrayfcomplex, Funcfcomplex, fcomplex, fcomplex)

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<fcomplex> apply(
	BaseArray<fcomplex> A,
	BaseArray<fcomplex> B,
	Func<fcomplex, fcomplex, fcomplex> func
)

Parameters

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

Return Value

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

Overloads of apply(BaseArrayfcomplex, BaseArrayfcomplex, Funcfcomplex, fcomplex, fcomplex) 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(BaseArrayfcomplex, BaseArrayfcomplex, Funcfcomplex, fcomplex, fcomplex) 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)