Skip to content

Commit 930496a

Browse files
committed
new version
1 parent 0b1827d commit 930496a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "GaussBP"
22
uuid = "7e9f8bf2-99af-4218-abca-a9d13ed0f79b"
33
authors = ["Mirsad Cosovic <mirsad.cosovic@gmail.com>"]
4-
version = "0.0.6"
4+
version = "0.0.7"
55

66
[deps]
77
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"

src/gbp.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ end
362362
end
363363

364364
######### Ageing the GBP update ##########
365-
@inline function ageingInference!(gbp::GraphicalModel; factor = 0::Int64, variance = 0, model = 0, a = 0, b = 0, limit = 0, iterate = 0)
365+
@inline function ageingInference!(gbp::GraphicalModel; factor = 0::Int64, variance = 0, model = 0::Int64, a = 0, b = 0, limit = 0, iterate = 0)
366366
if gbp.system.variance[factor] < limit
367367
if (gbp.system.jacobianTranspose.colptr[factor + 1] - gbp.system.jacobianTranspose.colptr[factor]) == 1
368368
idx = gbp.system.jacobianTranspose.colptr[factor]
@@ -397,7 +397,7 @@ end
397397
end
398398

399399
######### Freeze factor node ##########
400-
function freezeFactor!(gbp; factor = 0)
400+
function freezeFactor!(gbp; factor = 0::Int64)
401401
if factor == 0
402402
error("The keyword factor is missing.")
403403
elseif factor > gbp.graph.Nfactor
@@ -424,7 +424,7 @@ function freezeFactor!(gbp; factor = 0)
424424
end
425425

426426
######### Defreeze factor node ##########
427-
function defreezeFactor!(gbp; factor = 0)
427+
function defreezeFactor!(gbp; factor = 0::Int64)
428428
if factor == 0
429429
error("The keyword factor is missing.")
430430
elseif factor > gbp.graph.Nfactor
@@ -458,7 +458,7 @@ function defreezeFactor!(gbp; factor = 0)
458458
end
459459

460460
######### Freeze variable node ##########
461-
function freezeVariable!(gbp; variable = 0)
461+
function freezeVariable!(gbp; variable = 0::Int64)
462462
if variable == 0
463463
error("The keyword variable is missing.")
464464
elseif variable > gbp.graph.Nvariable
@@ -480,7 +480,7 @@ function freezeVariable!(gbp; variable = 0)
480480
end
481481

482482
######### Defreeze variable node ##########
483-
function defreezeVariable!(gbp; variable = 0)
483+
function defreezeVariable!(gbp; variable = 0::Int64)
484484
if variable == 0
485485
error("The keyword variable is missing.")
486486
elseif variable > gbp.graph.Nvariable

0 commit comments

Comments
 (0)