Skip to content

Commit

Permalink
Merge pull request #338 from vpuri3/diffeqidentity
Browse files Browse the repository at this point in the history
rm diffeqidentity
  • Loading branch information
ChrisRackauckas authored Jul 2, 2023
2 parents 05c8f9e + 3f3896b commit 9eccfbe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/LinearSolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ _isidentity_struct(A) = false
_isidentity_struct::Number) = isone(λ)
_isidentity_struct(A::UniformScaling) = isone(A.λ)
_isidentity_struct(::SciMLOperators.IdentityOperator) = true
_isidentity_struct(::SciMLBase.DiffEqIdentity) = true

# Code

Expand Down
1 change: 0 additions & 1 deletion test/traits.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ N = 4
@test _isidentity_struct(I)
@test _isidentity_struct(1.0 * I)
@test _isidentity_struct(SciMLBase.IdentityOperator(N))
@test _isidentity_struct(SciMLBase.DiffEqIdentity(rand(4)))
@test !_isidentity_struct(2.0 * I)
@test !_isidentity_struct(rand(N, N))
@test !_isidentity_struct(Matrix(I, N, N))
Expand Down

0 comments on commit 9eccfbe

Please sign in to comment.