Click or drag to resize

DoubleVectorEquality Operator

Tests for equality of two vectors. 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: 7.4
Syntax
public static bool operator ==(
	DoubleVector v,
	DoubleVector w
)

Parameters

v  DoubleVector
The left-hand vector.
w  DoubleVector
The right-hand vector.

Return Value

Boolean
True if the vectors are of the same dimension and contain the same values, or if both vectors are null; otherwise, false.
Remarks
The comparison of the values is done using operator== for doubles. Therefore, the values of the vectors must be exactly equal for this method to return true.
See Also