Fix potential bug for exponential map

This commit is contained in:
SEOGI KANG
2014-12-08 12:12:51 -08:00
parent 6dee8a1c6e
commit 7fa5f6f0f6
+1 -1
View File
@@ -86,7 +86,7 @@ class IdentityMap(object):
"""
print 'Testing %s' % str(self)
if m is None:
m = np.random.rand(self.nP)
m = abs(np.random.rand(self.nP))
if 'plotIt' not in kwargs:
kwargs['plotIt'] = False
return checkDerivative(lambda m : [self * m, self.deriv(m)], m, **kwargs)