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
What if instead, we defined CuTensorMap in src/TensorKit.jl but made it MethodError unless the extension is loaded (which would then provide the actual constructors).
I completely agree, but there is actually no way to define a type alias like that in the main package. Do you know in what context you want to use this? Maybe we can provide alternative interfaces to circumvent needing CuTensorMap directly?
The struct definition we may not be able to put in the main package, I agree, but we could add the wrapper constructors like CuTensorMap(::TensorMap) etc.
Activity
lkdvos commentedon Jan 20, 2026
I completely agree, but there is actually no way to define a type alias like that in the main package. Do you know in what context you want to use this? Maybe we can provide alternative interfaces to circumvent needing CuTensorMap directly?
kshyatt commentedon Jan 20, 2026
The struct definition we may not be able to put in the main package, I agree, but we could add the wrapper constructors like
CuTensorMap(::TensorMap)etc.lkdvos commentedon Jan 20, 2026
Isn't that what
adapt(CuArray, t::TensorMap)is supposed to do? We can also addCUDA.cu(::TensorMap)as wellkshyatt commentedon Jan 20, 2026