Skip to content

Commit

Permalink
Add missing similar definition
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed Dec 25, 2024
1 parent 61fd315 commit 89b54db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "BroadcastMapConversion"
uuid = "4a4adec5-520f-4750-bb37-d5e66b4ddeb2"
authors = ["ITensor developers <[email protected]> and contributors"]
version = "0.2.0"
version = "0.1.2"

[compat]
julia = "1.10"
1 change: 1 addition & 0 deletions src/BroadcastMapConversion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
Expand Down

0 comments on commit 89b54db

Please sign in to comment.