Skip to content

Commit eceeec9

Browse files
committed
updated BlockBanded
1 parent 2c0c91a commit eceeec9

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Roots = "f2b01f46-fcfa-551c-844a-d8ac1e96c665"
1313

1414
[compat]
1515
Arpack = "0.3, 0.4, 0.5"
16-
BlockBandedMatrices = "0.7, 0.8, 0.9, 0.10, 0.11, 0.12"
16+
BlockBandedMatrices = "0.12, 0.13"
1717
Distributions = "0.22, 0.23, 0.24, 0.25"
1818
FillArrays = "0.8, 0.9, 0.10, 0.11, 0.12, 0.13, 1"
1919
KrylovKit = "0.4, 0.5, 0.6"

src/InfinitesimalGenerators.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ using BlockBandedMatrices: BandedBlockBandedMatrix, Block
1212

1313

1414

15-
1615
include("MarkovProcess.jl")
1716
include("AdditiveFunctional.jl")
1817
include("feynman_kac.jl")

src/jointoperator.jl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,10 @@ function jointoperator(operators, Q::Array)
88
# same as the number of operators
99
@assert size(Q,1) == size(Q,2) == N
1010
J = BandedBlockBandedMatrix(Zeros(wn * N, wn * N), fill(wn, N) ,fill(wn, N), (N-1, N-1), (1, 1))
11-
for i in 1:N
12-
J[Block(i,i)] = operators[i]
13-
end
1411
for i in 1:N
1512
for j in 1:N
16-
J[Block(i,j)] += Tridiagonal(zeros(wn -1), fill(Q[i, j], wn), zeros(wn-1))
13+
J[Block(i,j)] = Q[i, j] * I(wn) + (i == j) * operators[i]
1714
end
1815
end
1916
return J
20-
end
17+
end

0 commit comments

Comments
 (0)