Click or drag to resize
VariableArrayT Method (IListRange)
Microsoft Research
Creates a 1D or 2D random variable array whose dimensions are specified by a list of Range objects.

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.6.41128.1 (2.6.41128.1)
Syntax
public static IVariableArray Array<T>(
	IList<Range> ranges
)

Parameters

ranges
Type: System.Collections.GenericIListRange
A list of Range objects, each object initialized to the size of one of the array's dimensions. The list can contain no more than two Range objects

Type Parameters

T
The domain type.

Return Value

Type: IVariableArray
Returns a VariableArray or VariableArray2D object whose dimensions are specified by ranges.
Exceptions
ExceptionCondition
NotSupportedExceptionThrows NotSupportedException if ranges contains more than two Range objects.
See Also