formatting

release/4.3a0
Gerry Chen 2021-01-20 17:08:18 -05:00
parent 570135c6f6
commit b638954266
1 changed files with 12 additions and 10 deletions

View File

@ -180,10 +180,12 @@ namespace gtsam {
///@name Linear Algebra ///@name Linear Algebra
///@{ ///@{
/// Sparse matrix representation as vector of tuples.
typedef std::vector<boost::tuple<size_t, size_t, double>> typedef std::vector<boost::tuple<size_t, size_t, double>>
SparseMatrixBoostTriplets; ///< Sparse matrix representation as vector of tuples. SparseMatrixBoostTriplets;
typedef std::vector<std::tuple<int, int, double>> /// Sparse matrix representation as vector of slightly more efficient
SparseMatrixGtsamTriplets; ///< Sparse matrix representation as vector of SparseTriplet's. /// tuples.
typedef std::vector<std::tuple<int, int, double>> SparseMatrixGtsamTriplets;
/** /**
* Return vector of i, j, and s to generate an m-by-n sparse augmented * Return vector of i, j, and s to generate an m-by-n sparse augmented
@ -430,13 +432,6 @@ namespace gtsam {
/// @} /// @}
private: private:
/** Serialization function */
friend class boost::serialization::access;
template<class ARCHIVE>
void serialize(ARCHIVE & ar, const unsigned int /*version*/) {
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base);
}
/** Performs in-place population of a sparse jacobian. Contains the /** Performs in-place population of a sparse jacobian. Contains the
* common functionality amongst different sparseJacobian functions. * common functionality amongst different sparseJacobian functions.
* @param entries a container of triplets that supports * @param entries a container of triplets that supports
@ -445,6 +440,13 @@ namespace gtsam {
void sparseJacobianInPlace(T& entries, const Ordering& ordering, void sparseJacobianInPlace(T& entries, const Ordering& ordering,
size_t& nrows, size_t& ncols) const; size_t& nrows, size_t& ncols) const;
/** Serialization function */
friend class boost::serialization::access;
template<class ARCHIVE>
void serialize(ARCHIVE & ar, const unsigned int /*version*/) {
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base);
}
public: public:
/** \deprecated */ /** \deprecated */