ILNumerics Ultimate VS

ILMathcheckT Method (InArrayT, FuncInArrayT, RetArrayT, Boolean, String, InArrayT)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Checks if A is a valid parameter.

[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<T> check<T>(
	InArray<T> A,
	Func<InArray<T>, RetArray<T>> evaluation = null,
	bool allowNullInput = false,
	string ErrorMessage = "",
	InArray<T> Default = null
)

Parameters

A
Type: ILNumericsInArrayT
Input array.
evaluation (Optional)
Type: SystemFuncInArrayT, RetArrayT
[Optional] Evaluation function, checks input parameter and transforms it into result, gets only called for A other than null
allowNullInput (Optional)
Type: SystemBoolean
[optional] Only if A is null -> for true: returns null, false: throws exception. If Default was defined, this parameter is ignored.
ErrorMessage (Optional)
Type: SystemString
[Optional] Exception message.
Default (Optional)
Type: ILNumericsInArrayT
[optional] If A is null on input, this value is returned. If no default is given (i.e: null), allowNullInput is evaluated.

Type Parameters

T
Element type

Return Value

Type: RetArrayT
Result of calling evaluation(A) or A.
Exceptions

ExceptionCondition
ArgumentExceptionIf A was null on entry and allowNullInput is false
Remarks

[ILNumerics Computing Engine]

See Also

Reference