Click or drag to resize
VariableISparseListT Method
Microsoft Research
Creates a 1D random variable ISparseList with a specified size.

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

Parameters

r
Type: MicrosoftResearch.Infer.ModelsRange
A Range object that is initialized with the array's length.

Type Parameters

T
The domain type.

Return Value

Type: VariableArrayVariableT, ISparseListT
Returns a VariableArray object whose size is specified by r.
See Also