diff --git a/gtsam/linear/VectorValues.h b/gtsam/linear/VectorValues.h index 63361d968..af02f62d4 100644 --- a/gtsam/linear/VectorValues.h +++ b/gtsam/linear/VectorValues.h @@ -237,6 +237,9 @@ namespace gtsam { template void append(const CONTAINER& dimensions); + /** Removes the last subvector from the VectorValues */ + void pop_back() { values_.pop_back(); }; + /** Set all entries to zero, does not modify the size. */ void setZero();