Tests for equality of this vector and another vector. Two vectors are equal if they have the same dimensions and all values are equal.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public bool NaNEquals(
	Object o
)
Visual Basic (Declaration)
Public Function NaNEquals ( _
	o As Object _
) As Boolean
Visual C++
public:
bool NaNEquals(
	Object^ o
)

Parameters

o
Type: System..::.Object
Another vector.

Return Value

True if the vectors are of the same dimension and contain the same values; otherwise, false. Returns false if the passed object is null, or is not a FloatVector.

Remarks

This method ignores NaN values when checking for equality.

Remarks

The comparison of the values is done using operator== for floats that are not NaN. Therefore, the values of the vectors must be exactly equal for this method to return true.

See Also