Skip to content

Commit

Permalink
ambiguity in delay
Browse files Browse the repository at this point in the history
  • Loading branch information
mfalt committed May 16, 2021
1 parent e3dccfe commit a51a366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/DelayLtiSystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ end
# Efficient subtraction with number
-(sys::DelayLtiSystem, n::T) where {T <:Number} = +(sys, -n)
-(n::T, sys::DelayLtiSystem) where {T <:Number} = +(-sys, n)
function /(anything, sys::DelayLtiSystem)
function /(::LTISystem, sys::DelayLtiSystem)
all(iszero, sys.Tau) || error("A delayed system can not be inverted. Consider use of the function `feedback`.")
/(anything, sys.P.P) # If all delays are zero, invert the inner system
end
Expand Down

0 comments on commit a51a366

Please sign in to comment.