Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit 97cb183

Browse files
fix v0.7 DiffEqBase changes
1 parent 4a40252 commit 97cb183

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/DiffEqOperators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Base: *, getindex
66
using DiffEqBase, StaticArrays, LinearAlgebra
77
import DiffEqBase: update_coefficients, update_coefficients!
88

9-
abstract type AbstractDerivativeOperator{T} <: AbstractDiffEqLinearOperator{T} end
9+
abstract type AbstractDerivativeOperator{T} <: DiffEqBase.AbstractDiffEqLinearOperator{T} end
1010

1111
### Basic Operators
1212
include("diffeqscalar.jl")

src/array_operator.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
### AbstractDiffEqLinearOperator defined by an array and update functions
2-
mutable struct DiffEqArrayOperator{T,Arr<:Union{T,AbstractMatrix{T}},Sca,F} <: AbstractDiffEqLinearOperator{T}
2+
mutable struct DiffEqArrayOperator{T,Arr<:Union{T,AbstractMatrix{T}},Sca,F} <: DiffEqBase.AbstractDiffEqLinearOperator{T}
33
A::Arr
44
α::Sca
55
_isreal::Bool

src/operator_combination.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
Instead, build up the full matrix for each operator iteratively.
1414
=#
1515
# TODO: Type dispatch for this is incorrect at the moment
16-
# function Base.full(A::LinearCombination{T,Tuple{Vararg{O}},Ts}) where {T,O<:Union{AbstractDiffEqLinearOperator,IdentityMap},Ts}
16+
# function Base.full(A::LinearCombination{T,Tuple{Vararg{O}},Ts}) where {T,O<:Union{DiffEqBase.AbstractDiffEqLinearOperator,IdentityMap},Ts}
1717
# out = zeros(T,size(A))
1818
# for i = 1:length(A.maps)
1919
# c = A.coeffs[i]
@@ -50,5 +50,5 @@ LinearAlgebra.opnorm(A::LinearCombination, p::Real=2) = opnorm(full(A), p)
5050
=#
5151
opnormbound(a::Number, p::Real=2) = abs(a)
5252
opnormbound(A::AbstractArray, p::Real=2) = opnorm(A, p)
53-
opnormbound(A::Union{AbstractDiffEqLinearOperator,IdentityMap}, p::Real=2) = opnorm(A, p)
53+
opnormbound(A::Union{DiffEqBase.AbstractDiffEqLinearOperator,IdentityMap}, p::Real=2) = opnorm(A, p)
5454
opnormbound(A::LinearCombination, p::Real=2) = sum(abs.(A.coeffs) .* opnormbound.(A.maps, p))

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using DiffEqOperators, LinearAlgebra
22
using Test
3-
using SpecialMatrices
3+
using SpecialMatrices, StaticArrays, SpecialFunctions
44

55
tic()
66
@time @testset "Array Operators Interface" begin include("array_operators_interface.jl") end

0 commit comments

Comments
 (0)