-
Notifications
You must be signed in to change notification settings - Fork 24
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
support conj
in expressions
#89
Comments
You can write |
When applying the function to the array name I'd want to write it Thanks for the tip! It's great there's a way to do this, and it doesn't need to be ideal. Seems like it would be a bit of work on the |
It would indeed by nice to apply elementwise-functions in the loops and/or special dispatches but while it would be easy-ish for the macro-syntax and dispatches to our custom loops, it wouldn't work for the string-macro form ( If you work with large tensors I'd think the O(N) element-wise operations should generally be negligible compared to the e.g. O(N^3) tensor-contraction operations. If the memory is a problem, you might wanna do the inplace-version of |
oh, I just realized that the reason that I just ran across a similar issue trying to use As far as I know the elementwise operations aren't a bottleneck for me right now, so this is definitely not high-priority. Just to throw out my perspective though - I don't always work with large tensors, I'm starting to want to use |
I guess you could have notation like For things that aren't matrix multiplication, BTW, you may want my TensorCast which allows |
|
For example, for a Complex inner product the expression should look something like:
(I'm actually not sure if this is the right way to represent a scalar output, but you get the idea).
But this throws an error.
I get the same error with an explicit
conj(x1[i])
.The text was updated successfully, but these errors were encountered: