Skip to content

Commit 7bef423

Browse files
committed
allow use of fill in eunion
1 parent d0c41b7 commit 7bef423

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

src/operations/ewise.jl

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,40 @@ eunion(
416416
mask = nothing, accum = nothing, desc = nothing
417417
) = eunion(A, convert(storedeltype(A), α), B, convert(storedeltype(B), β), op; mask, accum, desc)
418418

419+
eunion(
420+
A::GBArrayOrTranspose, B::GBArrayOrTranspose, op::Function = +;
421+
mask = nothing, accum = nothing, desc = nothing
422+
) = eunion(A, getfill(A), B, getfill(B), op; mask, accum, desc)
423+
424+
eunion(
425+
A::GBArrayOrTranspose, α, B::GBArrayOrTranspose, op::Function = +;
426+
mask = nothing, accum = nothing, desc = nothing
427+
) = eunion(A, α, B, getfill(B), op; mask, accum, desc)
428+
429+
eunion(
430+
A::GBArrayOrTranspose, B::GBArrayOrTranspose, β, op::Function = +;
431+
mask = nothing, accum = nothing, desc = nothing
432+
) = eunion(A, getfill(A), B, β, op; mask, accum, desc)
433+
434+
eunion!(
435+
C::GBVecOrMat, A::GBArrayOrTranspose, α, B::GBArrayOrTranspose, β, op = +;
436+
mask = nothing, accum = nothing, desc = nothing
437+
) = eunion!(C, A, convert(storedeltype(A), α), B, convert(storedeltype(B), β), op; mask, accum, desc)
438+
439+
eunion!(
440+
C::GBVecOrMat, A::GBArrayOrTranspose, B::GBArrayOrTranspose, op::Function = +;
441+
mask = nothing, accum = nothing, desc = nothing
442+
) = eunion!(C, A, getfill(A), B, getfill(B), op; mask, accum, desc)
443+
444+
eunion!(
445+
C::GBVecOrMat, A::GBArrayOrTranspose, α, B::GBArrayOrTranspose, op::Function = +;
446+
mask = nothing, accum = nothing, desc = nothing
447+
) = eunion!(C, A, α, B, getfill(B), op; mask, accum, desc)
448+
449+
eunion!(
450+
C::GBVecOrMat, A::GBArrayOrTranspose, B::GBArrayOrTranspose, β, op::Function = +;
451+
mask = nothing, accum = nothing, desc = nothing
452+
) = eunion!(C, A, getfill(A), B, β, op; mask, accum, desc)
419453

420454
function Base.:+(A::GBArrayOrTranspose, B::GBArrayOrTranspose)
421455
eadd(A, B, +)

0 commit comments

Comments
 (0)