You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 like exp 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:
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: