Subtracts a vector from another vector.

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

Syntax

C#
public static DoubleVector operator -(
	DoubleVector v,
	DoubleVector w
)
Visual Basic (Declaration)
Public Shared Operator - ( _
	v As DoubleVector, _
	w As DoubleVector _
) As DoubleVector
Visual C++
public:
static DoubleVector^ operator -(
	DoubleVector^ v, 
	DoubleVector^ w
)

Parameters

v
Type: CenterSpace.NMath.Core..::.DoubleVector
The left-hand vector.
w
Type: CenterSpace.NMath.Core..::.DoubleVector
The right-hand vector.

Return Value

A new vector containing the difference.

Remarks

u[i] = v[i] - w[i]

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.MismatchedSizeExceptionThrown if the two vectors are not the same length.

See Also