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
classScalar(SymmetricTensor):
# a tensor with no legs, i.e.~a scalarcodomain= []
domain= []
...
Reasoning
Should be able to deal with backend-specific scalars (e.g. numpy scalar, torch scalar).
In particular, should be able to have the scalars on GPU, so we dont need to sync hardware just to do e.g. S = S / tensors.norm(S)
Packaging scalars in a tensor class allows a consistent and backend-agnostic interface (e.g. dont need to import torch to do conj)
The text was updated successfully, but these errors were encountered:
Strategy
Reasoning
In particular, should be able to have the scalars on GPU, so we dont need to sync hardware just to do e.g.
S = S / tensors.norm(S)
The text was updated successfully, but these errors were encountered: