Infer.NET Documentation
Constant<(Of <(T>)>) Method (value, r1, r2)
Infer.NET code documentationMicrosoftResearch.Infer.ModelsVariableConstant<(Of <(T>)>)(array<T,2>[,](,)[,], Range, Range)
Microsoft Research, Cambridge
Defines a constant which is a 2D array.
Declaration Syntax
C#Visual BasicVisual C++
public static VariableArray2D<T> Constant<T>(
	T[,] value,
	Range r1,
	Range r2
)
Public Shared Function Constant(Of T) ( _
	value As T(,), _
	r1 As Range, _
	r2 As Range _
) As VariableArray2D(Of T)
public:
generic<typename T>
static VariableArray2D<T>^ Constant(
	array<T,2>^ value, 
	Range^ r1, 
	Range^ r2
)
Generic Template Parameters
T
The element type
Parameters
value (array< T ,2>[,](,)[,])
The constant array
r1 (Range)
The range associated with the first index
r2 (Range)
The range associated with the second index
Return Value
A new constant variable.

Assembly: Infer.Compiler (Module: Infer.Compiler) Version: 2.3.41111.0 (2.3.41111.0)