Change from split() to vector_split() #15
MaurusGubser
started this conversation in
Q&A
Replies: 1 comment 4 replies
-
|
Thanks for the question. The aim has been to make the use of On the to-do list is to overload the square brackets again so that e.g. (Footnote: No worries posting this as an issue, have been meaning to open the discussion section in GitHub, so have just done so now and moved this over there.) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I use Birch for implementing a HMM for a model of two legs in a course of motion. Basically, I have a state transition model, which is linear and Gaussian with a non-diagonal covariance and an observation model, which is non-linear with Gaussian noise. Thus, I use a vector expression for the state variable, which I split up in a vector of expressions to compute the observation variable.
Previously, I used split in my code. After the most recent update of Birch, split is deprecated. I guess I should use vector_split, but it is not clear to me, how a VectorSplitExpression is used. With split, I could define a new variable x (vector of expressions), whose elements I could access using the bracket operator, see code fragment below.
How can I use vector_split and how can I access the elements of the vector after using vector_split?
Not sure if this is the right place to ask a question, but I did not find any other place to do so.
Beta Was this translation helpful? Give feedback.
All reactions