Fixed matlab wrapper of sparse to take no arguments

release/4.3a0
Frank Dellaert 2011-10-30 20:25:08 +00:00
parent 42c772ff11
commit 0a101eb50f
2 changed files with 3 additions and 3 deletions

View File

@ -80,6 +80,6 @@ gfg = graph.linearize(result,ord);
denseAb = gfg.denseJacobian
%% Get sparse matrix
IJS = gfg.sparse([12 7 4 10 1 14]');
IJS = gfg.sparse();
Ab=sparse(IJS(1,:),IJS(2,:),IJS(3,:));
spy(Ab);
spy(Ab(:,1:end-1));

View File

@ -110,7 +110,7 @@ class GaussianFactorGraph {
void combine(const GaussianFactorGraph& lfg);
Matrix denseJacobian() const;
Matrix denseHessian() const;
Matrix sparse(Vector columnIndices) const;
Matrix sparse() const;
};
class Landmark2 {