We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
storagetype
1 parent 4e22032 commit c46d4feCopy full SHA for c46d4fe
1 file changed
src/tensors/abstracttensor.jl
@@ -224,7 +224,8 @@ end
224
# tensor characteristics: work on instances and pass to type
225
#------------------------------------------------------------
226
InnerProductStyle(t::AbstractTensorMap) = InnerProductStyle(typeof(t))
227
-storagetype(t::AbstractTensorMap) = storagetype(typeof(t))
+storagetype(t) = storagetype(typeof(t))
228
+storagetype(T::Type) = throw(MethodError(storagetype, T))
229
blocktype(t::AbstractTensorMap) = blocktype(typeof(t))
230
231
numout(t::AbstractTensorMap) = numout(typeof(t))
0 commit comments