Fixed some warnings
parent
e05a2adca8
commit
96a4d80da4
|
@ -760,7 +760,7 @@ Matrix expm(const Matrix& A, size_t K) {
|
|||
|
||||
/* ************************************************************************* */
|
||||
Matrix Cayley(const Matrix& A) {
|
||||
size_t n = A.cols();
|
||||
int n = A.cols();
|
||||
assert(A.rows() == n);
|
||||
|
||||
// original
|
||||
|
|
|
@ -216,7 +216,6 @@ namespace gtsam {
|
|||
* To print each node, this function calls the \c print function of the tree nodes. */
|
||||
template<class FOREST>
|
||||
void PrintForest(const FOREST& forest, std::string str, const KeyFormatter& keyFormatter) {
|
||||
typedef typename FOREST::Node Node;
|
||||
PrintForestVisitorPre visitor(keyFormatter);
|
||||
DepthFirstForest(forest, str, visitor);
|
||||
}
|
||||
|
|
|
@ -75,10 +75,6 @@ namespace gtsam {
|
|||
FastVector<typename TREE::sharedFactor>
|
||||
EliminateTree(RESULT& result, const TREE& tree, const typename TREE::Eliminate& function)
|
||||
{
|
||||
// Typedefs
|
||||
typedef typename TREE::sharedNode sharedNode;
|
||||
typedef typename TREE::sharedFactor sharedFactor;
|
||||
|
||||
// Do elimination using a depth-first traversal. During the pre-order visit (see
|
||||
// eliminationPreOrderVisitor), we store a pointer to the parent data (where we'll put the
|
||||
// remaining factor) and reserve a vector of factors to store the children elimination
|
||||
|
|
|
@ -620,7 +620,7 @@ namespace gtsam {
|
|||
model_ = noiseModel::Constrained::MixedSigmas(model_->sigmas().tail(remainingRows));
|
||||
else
|
||||
model_ = noiseModel::Diagonal::Sigmas(model_->sigmas().tail(remainingRows));
|
||||
assert(model_->dim() == Ab_.rows());
|
||||
assert(model_->dim() == (size_t)Ab_.rows());
|
||||
}
|
||||
gttoc(remaining_factor);
|
||||
|
||||
|
|
Loading…
Reference in New Issue