Click or drag to resize
VariableArrayT Method (VariableArrayT, Range, Range)
Microsoft Research
Creates a 2-D random variable array that contains a jagged array of 1D random variables.

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.7.1803.2803 (2.7.1803.2803)
Syntax
public static VariableArray2D<VariableArray<T>, T[][,]> Array<T>(
	VariableArray<T> array,
	Range r1,
	Range r2
)

Parameters

array
Type: MicrosoftResearch.Infer.ModelsVariableArrayT
A VariableArray object that serves as the item prototype.
r1
Type: MicrosoftResearch.Infer.ModelsRange
A Range object that is initialized with the size of the array's first dimension.
r2
Type: MicrosoftResearch.Infer.ModelsRange
A Range object that is initialized with the size of the array's second dimension.

Type Parameters

T
The domain type.

Return Value

Type: VariableArray2DVariableArrayT, T
Returns a VariableArray2D object whose dimensions are defined by r1 and r2. Each element of the array is a VariableArrayobject whose prototype is defined by array.
See Also