Skip to content

Commit

Permalink
export the abstract type
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Jun 11, 2017
1 parent 087c8c2 commit 99e077d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/DiffEqBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ abstract type AbstractParameterizedFunction{isinplace} <: Function end
abstract type ConstructedParameterizedFunction{isinplace} <: AbstractParameterizedFunction{isinplace} end
export AbstractParameterizedFunction, ConstructedParameterizedFunction

abstract type AbstractDiffEqOperator{T} <: AbstractLinearMap{T} end
export AbstractDiffEqOperator

include("utils.jl")
include("extended_functions.jl")
include("solutions/steady_state_solutions.jl")
Expand Down
3 changes: 0 additions & 3 deletions src/diffeq_operator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,13 @@
and only for when the default linear solve is used.
=#

abstract type AbstractDiffEqOperator{T} <: AbstractLinearMap{T} end

# Inherits the standard assumptions of an AbstractLinearMap
# Extra standard assumptions
is_constant(A::AbstractDiffEqOperator) = true
update_coefficients!(A,t,u) = nothing
update_coefficients(A,t,u) = A

# Generic fallbacks
cache_expm!(A,t) = nothing
Base.expm(A::AbstractDiffEqOperator,t) = expm(t*A)
expmv(A::AbstractDiffEqOperator,t,u) = expm(t,A)*u
expmv!(v,A::AbstractDiffEqOperator,t,u) = A_mul_B!(v,expm(t,A),u)
Expand Down

0 comments on commit 99e077d

Please sign in to comment.