VectorDotProduct(Vector, Vector) Method |
Dot product or scalar product.
Namespace: DotNumerics.LinearAlgebraAssembly: DWSIM.MathOps.DotNumerics (in DWSIM.MathOps.DotNumerics.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static double DotProduct(
Vector A,
Vector B
)
Public Shared Function DotProduct (
A As Vector,
B As Vector
) As Double
Request Example
View SourceParameters
- A Vector
- The left side vector of the operator.
- B Vector
- The right side vector of the operator.
Return Value
DoubleThe dot product = Sum(A[i]*B[i])
Remarks
The dot product is the result of multiplying all the components of two vectors together and adding the results, res= Sum(A[i]*B[i]).
See Also