Click or drag to resize
VariableIListTItem, TArray Method (VariableArrayTItem, TArray, Range)
Microsoft Research
Create a 1D IList of 1D random variable arrays

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.6.41128.1 (2.6.41128.1)
Syntax
public static VariableArray<VariableArray<TItem, TArray>, IList<TArray>> IList<TItem, TArray>(
	VariableArray<TItem, TArray> array,
	Range r
)
where TItem : Variable, SettableTo<TItem>, ICloneable

Parameters

array
Type: MicrosoftResearch.Infer.ModelsVariableArrayTItem, TArray
A variable object that serves as a prototype for the array elements.
r
Type: MicrosoftResearch.Infer.ModelsRange
A Range object that specifies the array length.

Type Parameters

TItem
The variable type of an item after two levels of indexing.
TArray
The domain type of an item.

Return Value

Type: VariableArrayVariableArrayTItem, TArray, IListTArray
Returns a VariableArray object whose length is defined by r. Each element of this array is a object of type VariableArray<TItem,TArray>
See Also