Click or drag to resize
VariableInnerProduct Method (VariableVector, VariableDenseVector)
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.7.1803.2803 (2.7.1803.2803)
Syntax
public static Variable<double> InnerProduct(
	Variable<Vector> a,
	Variable<DenseVector> b
)

Parameters

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

Return Value

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