37 JacobianWorkspace::JacobianWorkspace() :
38 _maxNumVertices(-1), _maxDimension(-1)
63 int numVertices = e->
vertices().size();
64 int maxDimensionForEdge = -1;
65 for (
int i = 0; i < numVertices; ++i) {
67 assert(v &&
"Edge has no vertex assigned");
68 maxDimensionForEdge = max(v->
dimension() * errorDimension, maxDimensionForEdge);
77 for (OptimizableGraph::EdgeSet::const_iterator it = graph.
edges().begin(); it != graph.
edges().end(); ++it) {
int _maxDimension
the maximum dimension (number of elements) for a Jacobian
const Vertex * vertex(size_t i) const
int dimension() const
returns the dimensions of the error function
int dimension() const
dimension of the estimated state belonging to this node
const VertexContainer & vertices() const
const EdgeSet & edges() const
void updateSize(const HyperGraph::Edge *e)
WorkspaceVector _workspace
the memory pre-allocated for computing the Jacobians
A general case Vertex for optimization.
int _maxNumVertices
the maximum number of vertices connected by a hyper-edge