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

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

Parameters

array
Type: MicrosoftResearch.Infer.ModelsVariableArrayT
AVariableArray 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.
r3
Type: MicrosoftResearch.Infer.ModelsRange
A Range object that is initialized with the size of the array's third dimension.

Type Parameters

T
The domain type.

Return Value

Type: VariableArray3DVariableArrayT, T
Returns a VariableArray3D object whose dimensions are defined by r1, r2, and r3. Each element of the array is a 1D VariableArrayobject whose prototype is defined by array.
See Also