diff --git a/gtsam/linear/JacobianFactorUnordered.h b/gtsam/linear/JacobianFactorUnordered.h index e14a5d894..6e108fd27 100644 --- a/gtsam/linear/JacobianFactorUnordered.h +++ b/gtsam/linear/JacobianFactorUnordered.h @@ -102,23 +102,23 @@ namespace gtsam { /** Construct unary factor */ JacobianFactorUnordered(Key i1, const Matrix& A1, - const Vector& b, const SharedDiagonal& model); + const Vector& b, const SharedDiagonal& model = SharedDiagonal()); /** Construct binary factor */ JacobianFactorUnordered(Key i1, const Matrix& A1, Key i2, const Matrix& A2, - const Vector& b, const SharedDiagonal& model); + const Vector& b, const SharedDiagonal& model = SharedDiagonal()); /** Construct ternary factor */ JacobianFactorUnordered(Key i1, const Matrix& A1, Key i2, const Matrix& A2, Key i3, const Matrix& A3, - const Vector& b, const SharedDiagonal& model); + const Vector& b, const SharedDiagonal& model = SharedDiagonal()); /** Construct an n-ary factor * @tparam TERMS A container whose value type is std::pair, specifying the * collection of keys and matrices making up the factor. */ template - JacobianFactorUnordered(const TERMS& terms, const Vector& b, const SharedDiagonal& model); + JacobianFactorUnordered(const TERMS& terms, const Vector& b, const SharedDiagonal& model = SharedDiagonal()); /** Constructor with arbitrary number keys, and where the augmented matrix is given all together * instead of in block terms. Note that only the active view of the provided augmented matrix @@ -126,7 +126,7 @@ namespace gtsam { * factor. */ template JacobianFactorUnordered( - const KEYS& keys, const VerticalBlockMatrix& augmentedMatrix, const SharedDiagonal& sigmas); + const KEYS& keys, const VerticalBlockMatrix& augmentedMatrix, const SharedDiagonal& sigmas = SharedDiagonal()); /** Convert from a HessianFactor (does Cholesky) */ //JacobianFactorUnordered(const HessianFactor& factor);