Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/tensors/tensor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct TensorMap{T, S <: IndexSpace, N₁, N₂, A <: DenseVector{T}} <: Abstrac
I = sectortype(S)
T <: Real && !(sectorscalartype(I) <: Real) &&
@warn("Tensors with real data might be incompatible with sector type $I", maxlog = 1)
length(data) == dim(space) || throw(DimensionMismatch("invalid length of data"))
length(data) == dim(space) || throw(DimensionMismatch(lazy"length of data ($(length(data))) does not match dimension of space ($(dim(space)))"))
return new{T, S, N₁, N₂, A}(data, space)
end
end
Expand Down
Loading