rename matrix type from `SpMat` to `SparseEigen`

release/4.3a0
Gerry Chen 2021-01-19 10:53:22 -05:00
parent d9c03aa827
commit d8491b27fb
1 changed files with 4 additions and 4 deletions

View File

@ -30,10 +30,10 @@
namespace gtsam {
typedef Eigen::SparseMatrix<double> SpMat;
typedef Eigen::SparseMatrix<double> SparseEigen;
/// Constructs an Eigen-format SparseMatrix of a GaussianFactorGraph
SpMat sparseJacobianEigen(
SparseEigen sparseJacobianEigen(
const GaussianFactorGraph &gfg, const Ordering &ordering) {
// TODO(gerry): eliminate copy/pasta by making GaussianFactorGraph version
// more general, or by creating an Eigen::Triplet compatible wrapper for
@ -107,12 +107,12 @@ SpMat sparseJacobianEigen(
}
// ...and make a sparse matrix with it.
SpMat Ab(row, currentColIndex + 1);
SparseEigen Ab(row, currentColIndex + 1);
Ab.setFromTriplets(entries.begin(), entries.end());
return Ab;
}
SpMat sparseJacobianEigen(const GaussianFactorGraph &gfg) {
SparseEigen sparseJacobianEigen(const GaussianFactorGraph &gfg) {
return sparseJacobianEigen(gfg, Ordering(gfg.keys()));
}