ILNumerics Ultimate VS

ILMathisequal Method

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Compares the number, shape, and type of elements of A and B and returns true if both are the same.

[ILNumerics Computing Engine]

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

public static bool isequal(
	BaseArray A,
	BaseArray B
)

Parameters

A
Type: ILNumericsBaseArray
First input array.
B
Type: ILNumericsBaseArray
Second input array.

Return Value

Type: Boolean
True, if all elements and sizes of both arrays match; false otherwise.
Remarks

Binary comparison is used on the elements. For floating point elements slight round-off errors will cause the comparison to fail! Use 'allall(abs(A - B) < tol)' or similar for floating point arrays instead. The same is recommended when performance is a critical factor: isequal(BaseArray, BaseArray) (just like the underlying function Equals(Object)) does not parallelize automatically and is recommended for simple, non-performance critical comparisons only.

If both arrays differ only in singleton dimensions but the types and (binary) values of all corresponding elements are equal the comparison can still succeed. Consider using IsSameShape(Size) additionally for a stricter comparisons including singleton dimensions.

This function is an alias for Equals(Object) which overrides Equals(Object). In difference to latter the function does not perform reference comparison but the type and value of the elements are compared too.

[ILNumerics Computing Engine]

See Also

Reference

MathInternal.eq(BaseArrayDouble, BaseArrayDouble)
MathInternal.allall(BaseArrayBoolean)