Click or drag to resize
VariableArrayFromVector Method
Microsoft Research
Create a random array from values in a Vector.

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.7.1803.2803 (2.7.1803.2803)
Syntax
public static VariableArray<double> ArrayFromVector(
	Variable<Vector> vector,
	Range range
)

Parameters

vector
Type: MicrosoftResearch.Infer.ModelsVariableVector
A random vector
range
Type: MicrosoftResearch.Infer.ModelsRange
The range to use for indexing the array. Must match the length of the vector.

Return Value

Type: VariableArrayDouble
A new array whose elements are equal to the elements of the vector
See Also