Negates the elements in this vector.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public static DoubleVector operator -( DoubleVector v ) |
| Visual Basic (Declaration) |
|---|
Public Shared Operator - ( _ v As DoubleVector _ ) As DoubleVector |
| Visual C++ |
|---|
public: static DoubleVector^ operator -( DoubleVector^ v ) |
Parameters
- v
- Type: CenterSpace.NMath.Core..::.DoubleVector
This vector.
Return Value
A new vector containing negated values.
Remarks
u[i] = -v[i]