Skip to content

Commit 4d1af8e

Browse files
committed
Add complex(::LazySum)
1 parent 23bdc70 commit 4d1af8e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/operators/lazysum.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Base.length(x::LazySum) = prod(size(x))
2424
Base.similar(x::LazySum, ::Type{S}, dims::Dims) where {S} = LazySum(similar(x.ops, S, dims))
2525
Base.setindex!(A::LazySum, X, i::Int) = (setindex!(A.ops, X, i); A)
2626

27+
Base.complex(x::LazySum) = LazySum(complex.(x.ops))
28+
2729
# Holy traits
2830
TimeDependence(x::LazySum) = istimed(x) ? TimeDependent() : NotTimeDependent()
2931
istimed(x::LazySum) = any(istimed, x)

0 commit comments

Comments
 (0)