mirror of
https://github.com/wassname/simpeg.git
synced 2026-06-27 19:48:52 +08:00
Fix potential bug for exponential map
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user