Fixed matlab wrapper of sparse to take no arguments
parent
42c772ff11
commit
0a101eb50f
|
@ -80,6 +80,6 @@ gfg = graph.linearize(result,ord);
|
||||||
denseAb = gfg.denseJacobian
|
denseAb = gfg.denseJacobian
|
||||||
|
|
||||||
%% Get sparse matrix
|
%% Get sparse matrix
|
||||||
IJS = gfg.sparse([12 7 4 10 1 14]');
|
IJS = gfg.sparse();
|
||||||
Ab=sparse(IJS(1,:),IJS(2,:),IJS(3,:));
|
Ab=sparse(IJS(1,:),IJS(2,:),IJS(3,:));
|
||||||
spy(Ab);
|
spy(Ab(:,1:end-1));
|
||||||
|
|
2
gtsam.h
2
gtsam.h
|
@ -110,7 +110,7 @@ class GaussianFactorGraph {
|
||||||
void combine(const GaussianFactorGraph& lfg);
|
void combine(const GaussianFactorGraph& lfg);
|
||||||
Matrix denseJacobian() const;
|
Matrix denseJacobian() const;
|
||||||
Matrix denseHessian() const;
|
Matrix denseHessian() const;
|
||||||
Matrix sparse(Vector columnIndices) const;
|
Matrix sparse() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Landmark2 {
|
class Landmark2 {
|
||||||
|
|
Loading…
Reference in New Issue