Click or drag to resize
VariableSum_Expanded Method
Microsoft Research
Returns a double variable which is the sum of the elements of an array variable. For sum of two variables, use the + operator.

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> Sum_Expanded(
	VariableArray<double> array
)

Parameters

array
Type: MicrosoftResearch.Infer.ModelsVariableArrayDouble
The array variable

Return Value

Type: VariableDouble
sum_i array[i]
See Also