In BayesTree, return a const reference to the 'nodes' structure, instead of a copy
parent
483e2ec959
commit
98aa3b0627
|
|
@ -202,7 +202,7 @@ namespace gtsam {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** return nodes */
|
/** return nodes */
|
||||||
Nodes nodes() const { return nodes_; }
|
const Nodes& nodes() const { return nodes_; }
|
||||||
|
|
||||||
/** return root clique */
|
/** return root clique */
|
||||||
const sharedClique& root() const { return root_; }
|
const sharedClique& root() const { return root_; }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue