| 40 | } |
| 41 | |
| 42 | Vector FactorGraphConfig::ParseVectorFromYAML(YAML::Node VectorNode) |
| 43 | { |
| 44 | int Length = VectorNode.size(); |
| 45 | Vector Vec(Length); |
| 46 | |
| 47 | if(Length == 0) |
| 48 | { |
| 49 | PRINT_ERROR("Empty element in YAML config: ", VectorNode); |
| 50 | } |
| 51 | |
| 52 | for(int n = 0; n < Length; n++) |
| 53 | { |
| 54 | Vec(n) = VectorNode[n].as<double>(); |
| 55 | } |
| 56 | |
| 57 | return Vec; |
| 58 | } |
| 59 | |
| 60 | FactorGraphConfig::FactorGraphConfig() |
| 61 | { |
nothing calls this directly
no outgoing calls
no test coverage detected