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

Commit acd6b7e

Browse files
committed
size(A, n) hotfix for array operator
1 parent 97cb183 commit acd6b7e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/array_operator.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Base.full(L::DiffEqArrayOperator) = full(L.A) .* L.α.coeff
5656
Base.exp(L::DiffEqArrayOperator) = exp(full(L))
5757
DiffEqBase.has_exp(L::DiffEqArrayOperator) = true
5858
Base.size(L::DiffEqArrayOperator) = size(L.A)
59+
Base.size(L::DiffEqArrayOperator, m::Integer) = size(L.A, m)
5960
LinearAlgebra.opnorm(L::DiffEqArrayOperator, p::Real=2) = opnorm(L.A, p) * abs(L.α.coeff)
6061
DiffEqBase.update_coefficients!(L::DiffEqArrayOperator,u,p,t) = (L.update_func(L.A,u,p,t); L.α = L.α(t); nothing)
6162
DiffEqBase.update_coefficients(L::DiffEqArrayOperator,u,p,t) = (L.update_func(L.A,u,p,t); L.α = L.α(t); L)

0 commit comments

Comments
 (0)