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

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