Click or drag to resize
VariableConstantT Method (IListT, Range)
Microsoft Research
Defines a constant which is a 1D array.

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.6.41128.1 (2.6.41128.1)
Syntax
public static VariableArray<Variable<T>, IList<T>> Constant<T>(
	IList<T> value,
	Range r
)

Parameters

value
Type: System.Collections.GenericIListT
The constant list.
r
Type: MicrosoftResearch.Infer.ModelsRange
The range associated with this constant list.

Type Parameters

T
The element type.

Return Value

Type: VariableArrayVariableT, IListT
A new constant variable.
See Also