ILNumerics - Technical Application Development
Assembly: ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
Result of calling evaluation(A) or A.
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: RetArrayTResult of calling evaluation(A) or A.
Exceptions
Exception | Condition |
---|---|
ArgumentException | If A was null on entry and allowNullInput is false |
Remarks
[ILNumerics Computing Engine]
See Also