Skip to content
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

Partial traces #57

Closed
lkdvos opened this issue Apr 29, 2023 · 2 comments
Closed

Partial traces #57

lkdvos opened this issue Apr 29, 2023 · 2 comments

Comments

@lkdvos
Copy link

lkdvos commented Apr 29, 2023

Hi Devin,

I was wondering if there is any functionality here to have partial traces on tensors. I am looking for something along the lines of:
$C_{ab} = A_{cabc}$
It seems like this is some kind of reduction, but am I wrong in deducing that the reduction operations currently reduce all the way to a scalar?

Thanks!
Lukas

@lesiukmichal
Copy link

In all cases we encountered, this did the trick for such "partial traces":
tblis::add ( +1.0, A, "cabc", 0.0, C, "ab" );
Best,
Michał

@lkdvos
Copy link
Author

lkdvos commented Apr 5, 2024

Thanks a lot for your comment, I think this finally allowed me to actually fully implement the interface!

@lkdvos lkdvos closed this as completed Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants