-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Way to get the weights and nodes for an expectation operator? #4
Comments
Makes sense. Is there any distinction (in CS-land) between an operator and a |
Well, I meant to use operator in the mathematical sense, but this is how you make an object callable https://docs.julialang.org/en/v0.6.0/manual/methods/#Function-like-objects-1 The only thing to keep in mind with the design of the types is that |
Gotcha. Thanks for the link; could easily see myself struggling with that. And makes sense re different algos. |
This issue is now implemented; e.g.
|
It is very convenient to do the following
However, sometimes you would prefer to instead directly get the nodes and weights for the expectation operator (which is then a linear operator).
Because of this, instead of
expectation(...)
returning a function, perhaps it should return an operator "type" which is callable (and hence can act as a function) but has other methods. In particular,The text was updated successfully, but these errors were encountered: