Infer.NET Documentation
Subarray<(Of <(T>)>) Method (array, indices)
Infer.NET code documentationMicrosoftResearch.Infer.ModelsVariableSubarray<(Of <(T>)>)(Variable<(Of <(array<T>[]()[]>)>), VariableArray<(Of <(Int32>)>))
Microsoft Research, Cambridge
Gets a variable array containing different items of a source array
Declaration Syntax
C#Visual BasicVisual C++
public static VariableArray<T> Subarray<T>(
	Variable<T[]> array,
	VariableArray<int> indices
)
Public Shared Function Subarray(Of T) ( _
	array As Variable(Of T()), _
	indices As VariableArray(Of Integer) _
) As VariableArray(Of T)
public:
generic<typename T>
static VariableArray<T>^ Subarray(
	Variable<array<T>^>^ array, 
	VariableArray<int>^ indices
)
Generic Template Parameters
T
The domain type of array elements.
Parameters
array (Variable<(Of <(array< T >[]()[]>)>))
The source array
indices (VariableArray<(Of <(Int32>)>))
Variable array containing the indices of the elements to get. The indices must all be different.
Return Value
variable array with the specified items
Remarks

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