Skip to content

Commit a6e1b25

Browse files
geoffroylecontedpo
authored andcommitted
fix #245
1 parent fdd53b8 commit a6e1b25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/TimedOperators.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ using TimerOutputs
22

33
export TimedLinearOperator
44

5-
mutable struct TimedLinearOperator{T, F, Ft, Fct} <: AbstractLinearOperator{T}
5+
mutable struct TimedLinearOperator{T, OP <: AbstractLinearOperator{T}, F, Ft, Fct} <: AbstractLinearOperator{T}
66
timer::TimerOutput
7-
op::AbstractLinearOperator{T}
7+
op::OP
88
prod!::F
99
tprod!::Ft
1010
ctprod!::Fct
@@ -16,7 +16,7 @@ TimedLinearOperator{T}(
1616
prod!::F,
1717
tprod!::Ft,
1818
ctprod!::Fct,
19-
) where {T, F, Ft, Fct} = TimedLinearOperator{T, F, Ft, Fct}(timer, op, prod!, tprod!, ctprod!)
19+
) where {T, F, Ft, Fct} = TimedLinearOperator{T, typeof(op), F, Ft, Fct}(timer, op, prod!, tprod!, ctprod!)
2020

2121
"""
2222
TimedLinearOperator(op)

0 commit comments

Comments
 (0)