gtsam/matlab/symbolIndex.m

4 lines
99 B
Matlab

function i = symbolIndex(key)
% generate the index from a key
s = gtsamSymbol(key);
i = s.index();