Skip to content

Commit d47f4d5

Browse files
authored
_adjortrans for BroadcastArray (#390)
* _adjortrans for BroadcastArray * v2.9.3 * Update downstream.yml * Update broadcasttests.jl
1 parent 8bf603d commit d47f4d5

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

.github/workflows/downstream.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
- {repo: ContinuumArrays.jl, group: JuliaApproximation}
3838
- {repo: ClassicalOrthogonalPolynomials.jl, group: JuliaApproximation}
3939
- {repo: SemiclassicalOrthogonalPolynomials.jl, group: JuliaApproximation}
40+
- {repo: SingularIntegrals.jl, group: JuliaApproximation}
4041

4142
steps:
4243
- uses: actions/checkout@v6

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "LazyArrays"
22
uuid = "5078a376-72f3-5289-bfd5-ec5146d43c02"
3-
version = "2.9.2"
3+
version = "2.9.3"
44

55
[deps]
66
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"

src/lazybroadcasting.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,3 +458,4 @@ permutedims(A::BroadcastArray{T}) where T = BroadcastArray{T}(A.f, map(_permuted
458458
_adjortrans(A::SubArray{<:Any,2, <:Any, <:Tuple{Slice,Any}}) = view(_adjortrans(parent(A)), parentindices(A)[2])
459459
_adjortrans(A::Adjoint) = A'
460460
_adjortrans(A::Transpose) = transpose(A)
461+
_adjortrans(A::BroadcastArray{T}) where T = BroadcastArray{T}(A.f, map(_adjortrans, A.args)...)

test/broadcasttests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,10 +393,12 @@ using Infinities
393393
a = BroadcastArray(real, ((1:5) .+ im)')
394394
@test a[:,1:3] == (1:3)'
395395
@test a[:,1:3] isa Adjoint{Int,Vector{Int}}
396+
@test a[1,1:3] == 1:3
396397

397398
a = BroadcastArray(real, transpose((1:5) .+ im))
398399
@test a[:,1:3] == (1:3)'
399400
@test a[:,1:3] isa Adjoint{Int,Vector{Int}}
401+
@test a[1,1:3] == 1:3
400402
end
401403

402404
@testset "broadcast with adjtrans/triangular/hermsym" begin

0 commit comments

Comments
 (0)