ILNumerics Ultimate VSILMathapply Method (BaseArrayUInt32, BaseArrayUInt32, FuncUInt32, UInt32, UInt32)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.3.0.0 (5.3.7131.2749)
Syntax

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

Parameters

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

Return Value

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

Overloads of apply(BaseArrayUInt32, BaseArrayUInt32, FuncUInt32, UInt32, UInt32) 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(BaseArrayUInt32, BaseArrayUInt32, FuncUInt32, UInt32, UInt32) 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)