Click or drag to resize

VectorDotProduct(Vector, Vector) Method

Dot product or scalar product.

Namespace: DotNumerics.LinearAlgebra
Assembly: 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
)
Request Example View Source

Parameters

A  Vector
The left side vector of the operator.
B  Vector
The right side vector of the operator.

Return Value

Double
The 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