Skip to content

Commit c46d4fe

Browse files
committed
add storagetype to type domain
1 parent 4e22032 commit c46d4fe

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/tensors/abstracttensor.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ end
224224
# tensor characteristics: work on instances and pass to type
225225
#------------------------------------------------------------
226226
InnerProductStyle(t::AbstractTensorMap) = InnerProductStyle(typeof(t))
227-
storagetype(t::AbstractTensorMap) = storagetype(typeof(t))
227+
storagetype(t) = storagetype(typeof(t))
228+
storagetype(T::Type) = throw(MethodError(storagetype, T))
228229
blocktype(t::AbstractTensorMap) = blocktype(typeof(t))
229230

230231
numout(t::AbstractTensorMap) = numout(typeof(t))

0 commit comments

Comments
 (0)