Closed serdar- closed 7 years ago
I tried to run your code but vu
, vl
and S
are not defined in your snippet. How did you define these? My first guess is that there may be a breakage depending on the version of Julia you are using, as the most recent ones have changed the way they handle arrays. You may send me your full snippet and I can check it, possibly with some delay, as I am back to my base from 11 July onwards.
Ok I think i sorted out the problem. Apparently the function fl
has to return one floating point value rather than an array. Thus my S*v
returns an array. I want to sample from a system of linear equations, is it possible for me to do that?
I will close this issue @serdar, as you found out the answer to the question of your example. As for the last question about solving a system of linear equations, it is rather generic and open-ended for me to answer. If you have any more specific queries, ideally with an attempted solution too, then you may open an issue along with accompanying code and I can look at it.
Dear all,
I try to do sampling using MALA sampler but I get the following error:
Here is my code:
What could be the problem?