Click or drag to resize
Accord.NET (logo)

MatrixInnerProduct Method (Double, Double)

Note: This API is now obsolete.

Gets the inner product (scalar product) between two vectors (a'*b).

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.7.0
[ObsoleteAttribute("Please use Dot instead.")]
public static double InnerProduct(
	this double[] a,
	double[] b
Request Example View Source


Type: SystemDouble
A vector.
Type: SystemDouble
A vector.

Return Value

Type: Double
The inner product of the multiplication of the vectors.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

In mathematics, the dot product is an algebraic operation that takes two equal-length sequences of numbers (usually coordinate vectors) and returns a single number obtained by multiplying corresponding entries and adding up those products. The name is derived from the dot that is often used to designate this operation; the alternative name scalar product emphasizes the scalar (rather than vector) nature of the result.

The principal use of this product is the inner product in a Euclidean vector space: when two vectors are expressed on an orthonormal basis, the dot product of their coordinate vectors gives their inner product.

See Also