diff --git a/Project.toml b/Project.toml index f51c748..6f15963 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "BroadcastMapConversion" uuid = "4a4adec5-520f-4750-bb37-d5e66b4ddeb2" authors = ["ITensor developers and contributors"] -version = "0.2.0" +version = "0.1.2" [compat] julia = "1.10" diff --git a/src/BroadcastMapConversion.jl b/src/BroadcastMapConversion.jl index ac1a993..d8a4a87 100644 --- a/src/BroadcastMapConversion.jl +++ b/src/BroadcastMapConversion.jl @@ -77,6 +77,7 @@ mapped(bc::Broadcasted) = Mapped(bc) mapped(f, args...) = Mapped(broadcasted(f, args...)) Base.similar(m::Mapped, elt::Type) = similar(Broadcasted(m), elt) +Base.similar(m::Mapped, elt::Type, ax::Tuple) = similar(Broadcasted(m), elt, ax) Base.axes(m::Mapped) = axes(Broadcasted(m)) # Equivalent to: # map(m.f, m.args...)