Skip to content

Commit f86a556

Browse files
authored
Merge pull request #225 from avik-pal/ap/tstable_func
2 parents 451c583 + ec73bd2 commit f86a556

File tree

3 files changed

+225
-196
lines changed

3 files changed

+225
-196
lines changed

src/basic.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -633,11 +633,11 @@ function cache_self(L::ComposedOperator, u::AbstractVecOrMat)
633633
M = size(op, 1)
634634
sz = u isa AbstractMatrix ? (M, K) : (M,)
635635

636-
T = if op isa FunctionOperator #
636+
T = if op isa FunctionOperator #
637637
# FunctionOperator isn't guaranteed to play by the rules of
638638
# `promote_type`. For example, an irFFT is a complex operation
639639
# that accepts complex vector and returns ones.
640-
op.traits.eltypes[2]
640+
output_eltype(op)
641641
else
642642
promote_type(eltype.((op, cache[1]))...)
643643
end

0 commit comments

Comments
 (0)