Skip to content
Open
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
6 changes: 6 additions & 0 deletions src/padded.jl
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,12 @@

BroadcastStyle(::Type{<:PaddedArray{<:Any,N}}) where N = LazyArrayStyle{N}()

broadcasted(::LazyArrayStyle, op, A::ApplyArray{T,N,typeof(setindex)}) where {T,N} = ApplyArray(setindex, broadcast(op, A.args[1]), broadcast(op, A.args[2]), A.args[3])
broadcasted(::LazyArrayStyle, op, A::PaddedArray, c::Number) = ApplyArray(setindex, broadcast(op, A.args[1], c), broadcast(op, A.args[2], c), A.args[3])
broadcasted(::LazyArrayStyle, op, c::Number, A::PaddedArray) = ApplyArray(setindex, broadcast(op, c, A.args[1]), broadcast(op, c, A.args[2]), A.args[3])
broadcasted(::LazyArrayStyle, op, A::PaddedArray, c::Ref) = ApplyArray(setindex, broadcast(op, A.args[1], c), broadcast(op, A.args[2], c), A.args[3])
broadcasted(::LazyArrayStyle, op, c::Ref, A::PaddedArray) = ApplyArray(setindex, broadcast(op, c, A.args[1]), broadcast(op, c, A.args[2]), A.args[3])

Check warning on line 602 in src/padded.jl

View check run for this annotation

Codecov / codecov/patch

src/padded.jl#L598-L602

Added lines #L598 - L602 were not covered by tests



function ArrayLayouts._bidiag_forwardsub!(M::Ldiv{<:Any,<:PaddedColumns,<:AbstractMatrix,<:AbstractVector})
Expand Down
Loading