We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 05c8f9e + 3f3896b commit 9eccfbeCopy full SHA for 9eccfbe
src/LinearSolve.jl
@@ -50,7 +50,6 @@ _isidentity_struct(A) = false
50
_isidentity_struct(λ::Number) = isone(λ)
51
_isidentity_struct(A::UniformScaling) = isone(A.λ)
52
_isidentity_struct(::SciMLOperators.IdentityOperator) = true
53
-_isidentity_struct(::SciMLBase.DiffEqIdentity) = true
54
55
# Code
56
test/traits.jl
@@ -8,7 +8,6 @@ N = 4
8
@test _isidentity_struct(I)
9
@test _isidentity_struct(1.0 * I)
10
@test _isidentity_struct(SciMLBase.IdentityOperator(N))
11
- @test _isidentity_struct(SciMLBase.DiffEqIdentity(rand(4)))
12
@test !_isidentity_struct(2.0 * I)
13
@test !_isidentity_struct(rand(N, N))
14
@test !_isidentity_struct(Matrix(I, N, N))
0 commit comments