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

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