We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
complex(::LazySum)
1 parent 23bdc70 commit 4d1af8eCopy full SHA for 4d1af8e
src/operators/lazysum.jl
@@ -24,6 +24,8 @@ Base.length(x::LazySum) = prod(size(x))
24
Base.similar(x::LazySum, ::Type{S}, dims::Dims) where {S} = LazySum(similar(x.ops, S, dims))
25
Base.setindex!(A::LazySum, X, i::Int) = (setindex!(A.ops, X, i); A)
26
27
+Base.complex(x::LazySum) = LazySum(complex.(x.ops))
28
+
29
# Holy traits
30
TimeDependence(x::LazySum) = istimed(x) ? TimeDependent() : NotTimeDependent()
31
istimed(x::LazySum) = any(istimed, x)
0 commit comments