Click or drag to resize
VariableIArrayT Method (Range, Range)
Microsoft Research
Creates a 2D random variable array with specified dimensions.

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.6.41128.1 (2.6.41128.1)
Syntax
public static VariableArray2D<Variable<T>, IArray2D<T>> IArray<T>(
	Range r1,
	Range r2
)

Parameters

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: VariableArray2DVariableT, IArray2DT
Returns a VariableArray2D object whose dimensions are pecified by r1 and r2.
See Also