You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/GraphData.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ The following is a guideline to using these parameters.
15
15
16
16
**NOTE**: Adds in general throw an error if the element already exists. Update will update the element if it exists, otherwise it will add it.
17
17
18
-
**NOTE**: In general these functions will return an error if the respective element is not found. This is to avoid returning, say, nothing, which will be horribly confusing if you tried `getVariableSolverData(dfg, :a, :b)` and it returned nothing - which was missing, :a or :b, or was there a communication issue? We recommend coding defensively and trapping errors in critical portions of your user code.
18
+
**NOTE**: In general these functions will return an error if the respective element is not found. This is to avoid returning, say, nothing, which will be horribly confusing if you tried `getVariableState(dfg, :a, :b)` and it returned nothing - which was missing, :a or :b, or was there a communication issue? We recommend coding defensively and trapping errors in critical portions of your user code.
19
19
20
20
**NOTE**: All data is passed by reference, so if you update the returned structure it will update in the graph. The database driver is an exception, and once the variable or factor is updated you need to call update* to persist the changes to the graph.
21
21
@@ -125,26 +125,26 @@ Solver data is used by IncrementalInference/RoME/Caesar solver to produce the ab
125
125
Related functions:
126
126
127
127
128
-
-[`listVariableSolverData`](@ref)
129
-
-[`getVariableSolverData`](@ref)
130
-
-[`addVariableSolverData!`](@ref)
128
+
-[`listVariableStates`](@ref)
129
+
-[`getVariableState`](@ref)
130
+
-[`addVariableState!`](@ref)
131
+
-[`mergeVariableState!`](@ref)
132
+
-[`deleteVariableState!`](@ref)
131
133
-[`mergeVariableState!`](@ref)
132
-
-[`deleteVariableSolverData!`](@ref)
133
-
-[`mergeVariableSolverData!`](@ref)
134
134
135
135
136
136
Example of solver data operations:
137
137
138
138
```julia
139
139
# Add new VND of type ContinuousScalar to :x0
140
-
# Could also do VariableNodeData(ContinuousScalar())
0 commit comments