emerge 1.1.0__py3-none-any.whl → 1.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of emerge might be problematic. Click here for more details.

@@ -17,7 +17,7 @@
17
17
 
18
18
  import numpy as np
19
19
 
20
- def norm(Field: np.ndarray) -> np.ndarray:
20
+ def norm(Field: np.ndarray) -> np.ndarray:
21
21
  """ Computes the complex norm of a field (3,N)
22
22
 
23
23
  Args:
@@ -397,7 +397,7 @@ def matinv(M: np.ndarray) -> np.ndarray:
397
397
  out[2,0] = M[1,0]*M[2,1] - M[1,1]*M[2,0]
398
398
  out[2,1] = -M[0,0]*M[2,1] + M[0,1]*M[2,0]
399
399
  out[2,2] = M[0,0]*M[1,1] - M[0,1]*M[1,0]
400
- out = out*det
400
+ out = out/det
401
401
  return out
402
402
 
403
403
  @njit(f8[:,:](f8[:,:]), cache=True, nogil=True)
@@ -427,7 +427,7 @@ def matinv_r(M: np.ndarray) -> np.ndarray:
427
427
  out[2,0] = M[1,0]*M[2,1] - M[1,1]*M[2,0]
428
428
  out[2,1] = -M[0,0]*M[2,1] + M[0,1]*M[2,0]
429
429
  out[2,2] = M[0,0]*M[1,1] - M[0,1]*M[1,0]
430
- out = out*det
430
+ out = out/det
431
431
  return out
432
432
 
433
433
  @njit(cache=True, nogil=True)