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



alpha
A double representing the scalar value to multiply with the vector.
x
A Vector object representing the vector to multiply with the scalar.
y
A Vector object representing the vector to add with.

Computes a vector-scalar product and adds the result to a vector. It is defined as:

y=A*x+y

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Sub Add( _
   ByVal alpha As Double, _
   ByVal x As Vector, _
   ByVal y As Vector _
) 
Visual Basic (Usage)Copy Code
Dim alpha As Double
Dim x As Vector
Dim y As Vector
 
Vector.Add(alpha, x, y)
C# 
public static void Add( 
   double alpha,
   Vector x,
   Vector y
)
C++/CLI 
public:
static void Add( 
   double alpha,
   Vector^ x,
   Vector^ y
) 

Parameters

alpha
A double representing the scalar value to multiply with the vector.
x
A Vector object representing the vector to multiply with the scalar.
y
A Vector object representing the vector to add with.

Requirements

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

See Also

.NET Matrix Library