added note about code source and eigen resize for both static and dynamic matrices

release/4.3a0
Varun Agrawal 2020-07-10 21:51:36 -04:00
parent b735174707
commit 09ddd433a6
1 changed files with 14 additions and 0 deletions

View File

@ -548,6 +548,20 @@ GTSAM_EXPORT Vector columnNormSquare(const Matrix &A);
namespace boost { namespace boost {
namespace serialization { namespace serialization {
/**
* Ref. https://stackoverflow.com/questions/18382457/eigen-and-boostserialize/22903063#22903063
*
* Eigen supports calling resize() on both static and dynamic matrices.
* This allows for a uniform API, with resize having no effect if the static matrix
* is already the correct size.
* https://eigen.tuxfamily.org/dox/group__TutorialMatrixClass.html#TutorialMatrixSizesResizing
*
* We use all the Matrix template parameters to ensure wide compatibility.
*
* eigen_typekit in ROS uses the same code
* http://docs.ros.org/lunar/api/eigen_typekit/html/eigen__mqueue_8cpp_source.html
*/
// split version - sends sizes ahead // split version - sends sizes ahead
template<class Archive, template<class Archive,
typename Scalar_, typename Scalar_,