Convert VariableArray<double> to Vector ? RRS feed

  • Question

  • - From Vector to VariableArray<double>, you have Variable.ArrayFromVector(..)
    - From Variable<double[]> to Variable<Vector>, you have Variable.Vector(..)

    What about from VariableArray<double> to Vector  ? In my model, the mean of a VectorGaussian is derived from something else and is in the form of VariableArray<double>. I just want to feed this into Variable.VectorGaussianFromMeanAndPrecision( to here  , some matrix)

    Sunday, October 19, 2014 9:09 AM


  • A VariableArray<double> can be passed to any function that takes Variable<double[]>.
    • Marked as answer by wittawatj Friday, November 21, 2014 2:38 PM
    Sunday, October 19, 2014 10:37 AM