.NET Matrix Library
Subtract(Vector,Double) Method
See Also  Send Feedback



x
A Vector instance from which to subtract the scalar.
alpha
A double representing the scalar to subtract from the vector.
Subtracts a scalar from a vector.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function Subtract( _
   ByVal x As Vector, _
   ByVal alpha As Double _
) As Vector
Visual Basic (Usage)Copy Code
Dim x As Vector
Dim alpha As Double
Dim value As Vector
 
value = Vector.Subtract(x, alpha)
C# 
public static Vector Subtract( 
   Vector x,
   double alpha
)
C++/CLI 
public:
static Vector^ Subtract( 
   Vector^ x,
   double alpha
) 

Parameters

x
A Vector instance from which to subtract the scalar.
alpha
A double representing the scalar to subtract from the vector.

Return Value

A Vector object representing the result of the subtraction.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7

See Also

.NET Matrix Library