 | 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.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntaxpublic static bool operator ==(
DoubleVector v,
DoubleVector w
)
Public Shared Operator = (
v As DoubleVector,
w As DoubleVector
) As Boolean
public:
static bool operator ==(
DoubleVector^ v,
DoubleVector^ w
)
static let inline (=)
v : DoubleVector *
w : DoubleVector : bool
Parameters
- v DoubleVector
- The left-hand vector.
- w DoubleVector
- The right-hand vector.
Return Value
BooleanTrue if the vectors are of the same dimension and contain
the same values, or if both vectors are
null;
otherwise,
false.
RemarksThe 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