Click or drag to resize
VariableSubvector Method
Microsoft Research
Copy a contiguous subvector of a random vector.

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.6.41128.1 (2.6.41128.1)
Syntax
public static Variable<Vector> Subvector(
	Variable<Vector> source,
	Variable<int> startIndex,
	Variable<int> count
)

Parameters

source
Type: MicrosoftResearch.Infer.ModelsVariableVector
Random vector
startIndex
Type: MicrosoftResearch.Infer.ModelsVariableInt32
Index of the first element to copy
count
Type: MicrosoftResearch.Infer.ModelsVariableInt32
Number of elements to copy

Return Value

Type: VariableVector
A new vector variable whose value is equal to Vector.Subvector(source, startIndex, count)
See Also