Click or drag to resize
VariableSubarray2T Method
Microsoft Research
Gets a variable array containing different items of two source lists

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.7.1803.2803 (2.7.1803.2803)
Syntax
public static VariableArray<T> Subarray2<T>(
	VariableArray<T> array,
	VariableArray<int> indices,
	VariableArray<T> array2
)

Parameters

array
Type: MicrosoftResearch.Infer.ModelsVariableArrayT
The source array
indices
Type: MicrosoftResearch.Infer.ModelsVariableArrayInt32
Variable array containing the indices of the elements to get. The indices must all be different. Any index less than zero corresponds to fetching from the second source array at the same position.
array2
Type: MicrosoftResearch.Infer.ModelsVariableArrayT
The second source array

Type Parameters

T
The domain type of array elements.

Return Value

Type: VariableArrayT
variable array with the specified items
Remarks
See Also