File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 33 using SparseArrays
44 using StaticArraysCore
55 using SciMLOperators
6+ import SciMLOperators: AddedOperator
67
78 # DomainError: incompatible between size of array and type
89 @testset " Thrown Errors" begin
228229 # test number of lazy operators and assume_hermitian = Val(false)
229230 L_td_assume_herm = liouvillian (H_td)
230231 L_td_assume_not_herm = liouvillian (H_td, assume_hermitian = Val (false ))
232+ @test L_td_assume_herm. data isa AddedOperator
233+ @test L_td_assume_not_herm. data isa AddedOperator
231234 @test length (L_td_assume_herm. data. ops) == 3 # 1-time-indep. + 2-time-dep.
232235 @test length (L_td_assume_not_herm. data. ops) == 5 # 1-time-indep. + 2 x 2-time-dep.
233236 @test L_td_assume_herm (p, t) ≈ L_td_assume_not_herm (p, t) # check the matrix since H_td is itself Hermitian
You can’t perform that action at this time.
0 commit comments