Click or drag to resize
VariableInnerProduct Method (VariableArrayDouble, VariableVector)
Microsoft Research
Returns a double random variable which is the inner product of two vector variables.

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.6.41128.1 (2.6.41128.1)
Syntax
public static Variable<double> InnerProduct(
	VariableArray<double> a,
	Variable<Vector> b
)

Parameters

a
Type: MicrosoftResearch.Infer.ModelsVariableArrayDouble
The first vector variable
b
Type: MicrosoftResearch.Infer.ModelsVariableVector
The second vector variable

Return Value

Type: VariableDouble
sum_i a[i]*b[i]
See Also