forked from Jounce/Surge
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Scalar arithmetic #75
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I may be missing something obvious, but is there a 'trick' to performing arithmetic on Matrices with scalars? Simple things like 1.0 + exp(A) seems to require working with a matrix's
elements
directly (which isn't very aesthetically pleasing), and a very specific ordering of arguments:Am I missing something obvious here? I can always add functions myself (e.g.,
exp
), but I'd rather not if there is a 'right' way to do things here. I'm also interested in arithmetic on Tensors, which seem to have the same 'issues'. The Surge library from which Upsurge is forked had a few functions for things likeexp
on matrices, but these don't seem to be part of Upsurge, so I figured there must be an alternative?The text was updated successfully, but these errors were encountered: