We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 728d0fb commit c17f15fCopy full SHA for c17f15f
src/Common.jl
@@ -8,6 +8,7 @@ export getFactorType, getfnctype
8
export lsTypes, lsfTypes
9
export lsWho, lsfWho
10
export *
11
+export setSolvable!
12
13
*(a::Symbol, b::AbstractString)::Symbol = Symbol(string(a,b))
14
@@ -320,3 +321,16 @@ function lsfWho(dfg::AbstractDFG, type::Symbol)::Vector{Symbol}
320
321
end
322
return labels
323
324
+
325
326
+"""
327
+ $SIGNATURESSet the `solvable` parameter for either a variable or factor.
328
329
+function setSolvable!(dfg::AbstractDFG, sym::Symbol, solvable::Int)
330
+ if isVariable(dfg, sym)
331
+ getVariable(dfg, sym).solvable = solvable
332
+ elseif isFactor(dfg, sym)
333
+ getFactor(dfg, sym).solvable = solvable
334
+ end
335
+ return solvable
336
+end
0 commit comments