Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/TimedOperators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ using TimerOutputs

export TimedLinearOperator

mutable struct TimedLinearOperator{T, F, Ft, Fct} <: AbstractLinearOperator{T}
mutable struct TimedLinearOperator{T, OP <: AbstractLinearOperator{T}, F, Ft, Fct} <: AbstractLinearOperator{T}
timer::TimerOutput
op::AbstractLinearOperator{T}
op::OP
prod!::F
tprod!::Ft
ctprod!::Fct
Expand All @@ -16,7 +16,7 @@ TimedLinearOperator{T}(
prod!::F,
tprod!::Ft,
ctprod!::Fct,
) where {T, F, Ft, Fct} = TimedLinearOperator{T, F, Ft, Fct}(timer, op, prod!, tprod!, ctprod!)
) where {T, F, Ft, Fct} = TimedLinearOperator{T, typeof(op), F, Ft, Fct}(timer, op, prod!, tprod!, ctprod!)

"""
TimedLinearOperator(op)
Expand Down