|
583 | 583 | function alg_cache(alg::DRI1,prob,u,ΔW,ΔZ,p,rate_prototype,
|
584 | 584 | noise_rate_prototype,jump_rate_prototype,::Type{uEltypeNoUnits},
|
585 | 585 | ::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
|
586 |
| - if typeof(ΔW) <: Union{SArray,Number} |
| 586 | + if ΔW isa Union{SArray,Number} |
587 | 587 | _dW = copy(ΔW)
|
588 | 588 | _dZ = copy(ΔW)
|
589 | 589 | chi1 = copy(ΔW)
|
@@ -628,7 +628,7 @@ function alg_cache(alg::DRI1NM,prob,u,ΔW,ΔZ,p,rate_prototype,
|
628 | 628 | noise_rate_prototype,jump_rate_prototype,::Type{uEltypeNoUnits},
|
629 | 629 | ::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
|
630 | 630 |
|
631 |
| - if typeof(ΔW) <: Union{SArray,Number} |
| 631 | + if ΔW isa Union{SArray,Number} |
632 | 632 | _dW = copy(ΔW)
|
633 | 633 | chi1 = copy(ΔW)
|
634 | 634 | else
|
|
664 | 664 | function alg_cache(alg::RI1,prob,u,ΔW,ΔZ,p,rate_prototype,
|
665 | 665 | noise_rate_prototype,jump_rate_prototype,::Type{uEltypeNoUnits},
|
666 | 666 | ::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
|
667 |
| - if typeof(ΔW) <: Union{SArray,Number} |
| 667 | + if ΔW isa Union{SArray,Number} |
668 | 668 | _dW = copy(ΔW)
|
669 | 669 | _dZ = copy(ΔW)
|
670 | 670 | chi1 = copy(ΔW)
|
|
709 | 709 | function alg_cache(alg::RI3,prob,u,ΔW,ΔZ,p,rate_prototype,
|
710 | 710 | noise_rate_prototype,jump_rate_prototype,::Type{uEltypeNoUnits},
|
711 | 711 | ::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
|
712 |
| - if typeof(ΔW) <: Union{SArray,Number} |
| 712 | + if ΔW isa Union{SArray,Number} |
713 | 713 | _dW = copy(ΔW)
|
714 | 714 | _dZ = copy(ΔW)
|
715 | 715 | chi1 = copy(ΔW)
|
|
754 | 754 | function alg_cache(alg::RI5,prob,u,ΔW,ΔZ,p,rate_prototype,
|
755 | 755 | noise_rate_prototype,jump_rate_prototype,::Type{uEltypeNoUnits},
|
756 | 756 | ::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
|
757 |
| - if typeof(ΔW) <: Union{SArray,Number} |
| 757 | + if ΔW isa Union{SArray,Number} |
758 | 758 | _dW = copy(ΔW)
|
759 | 759 | _dZ = copy(ΔW)
|
760 | 760 | chi1 = copy(ΔW)
|
|
799 | 799 | function alg_cache(alg::RI6,prob,u,ΔW,ΔZ,p,rate_prototype,
|
800 | 800 | noise_rate_prototype,jump_rate_prototype,::Type{uEltypeNoUnits},
|
801 | 801 | ::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
|
802 |
| - if typeof(ΔW) <: Union{SArray,Number} |
| 802 | + if ΔW isa Union{SArray,Number} |
803 | 803 | _dW = copy(ΔW)
|
804 | 804 | _dZ = copy(ΔW)
|
805 | 805 | chi1 = copy(ΔW)
|
|
843 | 843 | function alg_cache(alg::RDI2WM,prob,u,ΔW,ΔZ,p,rate_prototype,
|
844 | 844 | noise_rate_prototype,jump_rate_prototype,::Type{uEltypeNoUnits},
|
845 | 845 | ::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
|
846 |
| - if typeof(ΔW) <: Union{SArray,Number} |
| 846 | + if ΔW isa Union{SArray,Number} |
847 | 847 | _dW = copy(ΔW)
|
848 | 848 | _dZ = copy(ΔW)
|
849 | 849 | chi1 = copy(ΔW)
|
|
889 | 889 | function alg_cache(alg::RDI3WM,prob,u,ΔW,ΔZ,p,rate_prototype,
|
890 | 890 | noise_rate_prototype,jump_rate_prototype,::Type{uEltypeNoUnits},
|
891 | 891 | ::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
|
892 |
| - if typeof(ΔW) <: Union{SArray,Number} |
| 892 | + if ΔW isa Union{SArray,Number} |
893 | 893 | _dW = copy(ΔW)
|
894 | 894 | _dZ = copy(ΔW)
|
895 | 895 | chi1 = copy(ΔW)
|
|
935 | 935 | function alg_cache(alg::RDI4WM,prob,u,ΔW,ΔZ,p,rate_prototype,
|
936 | 936 | noise_rate_prototype,jump_rate_prototype,::Type{uEltypeNoUnits},
|
937 | 937 | ::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
|
938 |
| - if typeof(ΔW) <: Union{SArray,Number} |
| 938 | + if ΔW isa Union{SArray,Number} |
939 | 939 | _dW = copy(ΔW)
|
940 | 940 | _dZ = copy(ΔW)
|
941 | 941 | chi1 = copy(ΔW)
|
@@ -1068,7 +1068,7 @@ end
|
1068 | 1068 | function alg_cache(alg::RDI1WM,prob,u,ΔW,ΔZ,p,rate_prototype,
|
1069 | 1069 | noise_rate_prototype,jump_rate_prototype,::Type{uEltypeNoUnits},
|
1070 | 1070 | ::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
|
1071 |
| - if typeof(ΔW) <: Union{SArray,Number} |
| 1071 | + if ΔW isa Union{SArray,Number} |
1072 | 1072 | _dW = copy(ΔW)
|
1073 | 1073 | chi1 = copy(ΔW)
|
1074 | 1074 | else
|
@@ -1290,7 +1290,7 @@ end
|
1290 | 1290 | function alg_cache(alg::RS1,prob,u,ΔW,ΔZ,p,rate_prototype,
|
1291 | 1291 | noise_rate_prototype,jump_rate_prototype,::Type{uEltypeNoUnits},
|
1292 | 1292 | ::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
|
1293 |
| - if typeof(ΔW) <: Union{SArray,Number} |
| 1293 | + if ΔW isa Union{SArray,Number} |
1294 | 1294 | _dW = copy(ΔW)
|
1295 | 1295 | _dZ = copy(ΔW)
|
1296 | 1296 | chi1 = copy(ΔW)
|
@@ -1333,7 +1333,7 @@ end
|
1333 | 1333 | function alg_cache(alg::RS2,prob,u,ΔW,ΔZ,p,rate_prototype,
|
1334 | 1334 | noise_rate_prototype,jump_rate_prototype,::Type{uEltypeNoUnits},
|
1335 | 1335 | ::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
|
1336 |
| - if typeof(ΔW) <: Union{SArray,Number} |
| 1336 | + if ΔW isa Union{SArray,Number} |
1337 | 1337 | _dW = copy(ΔW)
|
1338 | 1338 | _dZ = copy(ΔW)
|
1339 | 1339 | chi1 = copy(ΔW)
|
@@ -1435,7 +1435,7 @@ end
|
1435 | 1435 | function alg_cache(alg::PL1WM,prob,u,ΔW,ΔZ,p,rate_prototype,
|
1436 | 1436 | noise_rate_prototype,jump_rate_prototype,::Type{uEltypeNoUnits},
|
1437 | 1437 | ::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
|
1438 |
| - if typeof(ΔW) <: Union{SArray,Number} |
| 1438 | + if ΔW isa Union{SArray,Number} |
1439 | 1439 | _dW = copy(ΔW)
|
1440 | 1440 | _dZ = copy(ΔZ)
|
1441 | 1441 | chi1 = copy(ΔW)
|
@@ -1491,7 +1491,7 @@ end
|
1491 | 1491 | function alg_cache(alg::PL1WMA,prob,u,ΔW,ΔZ,p,rate_prototype,
|
1492 | 1492 | noise_rate_prototype,jump_rate_prototype,::Type{uEltypeNoUnits},
|
1493 | 1493 | ::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
|
1494 |
| - if typeof(ΔW) <: Union{SArray,Number} |
| 1494 | + if ΔW isa Union{SArray,Number} |
1495 | 1495 | _dW = copy(ΔW)
|
1496 | 1496 | chi1 = copy(ΔW)
|
1497 | 1497 | else
|
@@ -1656,7 +1656,7 @@ end
|
1656 | 1656 | function alg_cache(alg::NON,prob,u,ΔW,ΔZ,p,rate_prototype,
|
1657 | 1657 | noise_rate_prototype,jump_rate_prototype,::Type{uEltypeNoUnits},
|
1658 | 1658 | ::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
|
1659 |
| - if typeof(ΔW) <: Union{SArray,Number} |
| 1659 | + if ΔW isa Union{SArray,Number} |
1660 | 1660 | _dW = copy(ΔW)
|
1661 | 1661 | _dZ = copy(ΔW)
|
1662 | 1662 | chi1 = copy(ΔW)
|
@@ -1803,7 +1803,7 @@ end
|
1803 | 1803 | function alg_cache(alg::COM,prob,u,ΔW,ΔZ,p,rate_prototype,
|
1804 | 1804 | noise_rate_prototype,jump_rate_prototype,::Type{uEltypeNoUnits},
|
1805 | 1805 | ::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
|
1806 |
| - if typeof(ΔW) <: Union{SArray,Number} |
| 1806 | + if ΔW isa Union{SArray,Number} |
1807 | 1807 | _dW = copy(ΔW)
|
1808 | 1808 | else
|
1809 | 1809 | _dW = zero(ΔW)
|
@@ -1960,7 +1960,7 @@ end
|
1960 | 1960 | function alg_cache(alg::NON2,prob,u,ΔW,ΔZ,p,rate_prototype,
|
1961 | 1961 | noise_rate_prototype,jump_rate_prototype,::Type{uEltypeNoUnits},
|
1962 | 1962 | ::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
|
1963 |
| - if typeof(ΔW) <: Union{SArray,Number} |
| 1963 | + if ΔW isa Union{SArray,Number} |
1964 | 1964 | _dW = copy(ΔW)
|
1965 | 1965 | _dZ = copy(ΔW)
|
1966 | 1966 | chi1 = copy(ΔW)
|
@@ -2212,7 +2212,7 @@ function alg_cache(alg::SIEA,prob,u,ΔW,ΔZ,p,rate_prototype,
|
2212 | 2212 | ::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
|
2213 | 2213 |
|
2214 | 2214 |
|
2215 |
| - if typeof(ΔW) <: Union{SArray,Number} |
| 2215 | + if ΔW isa Union{SArray,Number} |
2216 | 2216 | W2 = copy(ΔW)
|
2217 | 2217 | W3 = copy(ΔW)
|
2218 | 2218 | else
|
@@ -2241,7 +2241,7 @@ function alg_cache(alg::SMEA,prob,u,ΔW,ΔZ,p,rate_prototype,
|
2241 | 2241 | ::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
|
2242 | 2242 |
|
2243 | 2243 |
|
2244 |
| - if typeof(ΔW) <: Union{SArray,Number} |
| 2244 | + if ΔW isa Union{SArray,Number} |
2245 | 2245 | W2 = copy(ΔW)
|
2246 | 2246 | W3 = copy(ΔW)
|
2247 | 2247 | else
|
@@ -2269,7 +2269,7 @@ function alg_cache(alg::SIEB,prob,u,ΔW,ΔZ,p,rate_prototype,
|
2269 | 2269 | ::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
|
2270 | 2270 |
|
2271 | 2271 |
|
2272 |
| - if typeof(ΔW) <: Union{SArray,Number} |
| 2272 | + if ΔW isa Union{SArray,Number} |
2273 | 2273 | W2 = copy(ΔW)
|
2274 | 2274 | W3 = copy(ΔW)
|
2275 | 2275 | else
|
@@ -2297,7 +2297,7 @@ function alg_cache(alg::SMEB,prob,u,ΔW,ΔZ,p,rate_prototype,
|
2297 | 2297 | ::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
|
2298 | 2298 |
|
2299 | 2299 |
|
2300 |
| - if typeof(ΔW) <: Union{SArray,Number} |
| 2300 | + if ΔW isa Union{SArray,Number} |
2301 | 2301 | W2 = copy(ΔW)
|
2302 | 2302 | W3 = copy(ΔW)
|
2303 | 2303 | else
|
|
0 commit comments