| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -341,6 +341,8 @@ end | |||
| 341 | 341 | Base.length(P::ProductSpace) = length(P.spaces) | |
| 342 | 342 | Base.getindex(P::ProductSpace, n::Integer) = P.spaces[n] | |
| 343 | 343 | ||
| 344 | + Base.Broadcast.broadcastable(P::ProductSpace) = P.spaces | ||
| 345 | + | ||
| 344 | 346 | Base.iterate(P::ProductSpace, args...) = Base.iterate(P.spaces, args...) | |
| 345 | 347 | Base.indexed_iterate(P::ProductSpace, args...) = Base.indexed_iterate(P.spaces, args...) | |
| 346 | 348 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -295,6 +295,7 @@ end | |||
| 295 | 295 | @test @constinferred(hash(P)) == hash(deepcopy(P)) != hash(P') | |
| 296 | 296 | @test P == deepcopy(P) | |
| 297 | 297 | @test P == typeof(P)(P...) | |
| 298 | + @test map(identity, P) == identity.(P) | ||
| 298 | 299 | @constinferred (x -> tuple(x...))(P) | |
| 299 | 300 | @test @constinferred(dual(P)) == P' | |
| 300 | 301 | @test @constinferred(field(P)) == ℂ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments