From 930496a42e9563621f61395c2c7a1304d5eceed9 Mon Sep 17 00:00:00 2001 From: mcosovic Date: Fri, 27 Aug 2021 15:00:14 +0200 Subject: [PATCH] new version --- Project.toml | 2 +- src/gbp.jl | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Project.toml b/Project.toml index ed58548..d4f3281 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "GaussBP" uuid = "7e9f8bf2-99af-4218-abca-a9d13ed0f79b" authors = ["Mirsad Cosovic "] -version = "0.0.6" +version = "0.0.7" [deps] Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b" diff --git a/src/gbp.jl b/src/gbp.jl index c05b025..2f8a444 100644 --- a/src/gbp.jl +++ b/src/gbp.jl @@ -362,7 +362,7 @@ end end ######### Ageing the GBP update ########## -@inline function ageingInference!(gbp::GraphicalModel; factor = 0::Int64, variance = 0, model = 0, a = 0, b = 0, limit = 0, iterate = 0) +@inline function ageingInference!(gbp::GraphicalModel; factor = 0::Int64, variance = 0, model = 0::Int64, a = 0, b = 0, limit = 0, iterate = 0) if gbp.system.variance[factor] < limit if (gbp.system.jacobianTranspose.colptr[factor + 1] - gbp.system.jacobianTranspose.colptr[factor]) == 1 idx = gbp.system.jacobianTranspose.colptr[factor] @@ -397,7 +397,7 @@ end end ######### Freeze factor node ########## -function freezeFactor!(gbp; factor = 0) +function freezeFactor!(gbp; factor = 0::Int64) if factor == 0 error("The keyword factor is missing.") elseif factor > gbp.graph.Nfactor @@ -424,7 +424,7 @@ function freezeFactor!(gbp; factor = 0) end ######### Defreeze factor node ########## -function defreezeFactor!(gbp; factor = 0) +function defreezeFactor!(gbp; factor = 0::Int64) if factor == 0 error("The keyword factor is missing.") elseif factor > gbp.graph.Nfactor @@ -458,7 +458,7 @@ function defreezeFactor!(gbp; factor = 0) end ######### Freeze variable node ########## -function freezeVariable!(gbp; variable = 0) +function freezeVariable!(gbp; variable = 0::Int64) if variable == 0 error("The keyword variable is missing.") elseif variable > gbp.graph.Nvariable @@ -480,7 +480,7 @@ function freezeVariable!(gbp; variable = 0) end ######### Defreeze variable node ########## -function defreezeVariable!(gbp; variable = 0) +function defreezeVariable!(gbp; variable = 0::Int64) if variable == 0 error("The keyword variable is missing.") elseif variable > gbp.graph.Nvariable