Click or drag to resize

BasisScalarProduct Method

Return the scalar product of the vectors having the specified coordinates.

Namespace:  Novacta.Analytics.Advanced
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
public double ScalarProduct(
	DoubleMatrix left,
	DoubleMatrix right
)

Parameters

left
Type: Novacta.AnalyticsDoubleMatrix
The coordinates of the first vector.
right
Type: Novacta.AnalyticsDoubleMatrix
The coordinates of the second vector.

Return Value

Type: Double
The scalar product of the vectors whose coordinates are represented by left and right, respectively.
Exceptions
ExceptionCondition
ArgumentNullExceptionleft is null.
-or-
right is null.
ArgumentOutOfRangeExceptionleft is not a row vector.
-or-
left has Count not equal to the Dimension of the Basis.
-or-
right is not a row vector.
-or-
right has Count not equal to the Dimension of the Basis.
Remarks

Coordinates must be passed as row vectors. Let LaTeX equation be the matrix representation of this instance, and let LaTeX equation and LaTeX equation be left and right, respectively. Then method ScalarProduct(DoubleMatrix, DoubleMatrix) returns

LaTeX equation

where LaTeX equation are coordinates w.r.t. basis LaTeX equation, and

LaTeX equation

See Also