linalg
This module provides general purpose and/or specialized linear algebra routines.
- Authors:
Mihai Cara
- License:
- tweakwcs.linalg.inv(m)[source]
This function computes inverse matrix using Gauss-Jordan elimination with full pivoting. Computations are performed using
numpy.longdoubleprecision. On systems on whichnumpy.longdoubleis equivalent tonumpy.doublethis function reverts tonumpy.linalg.invfor performance reasons.- Parameters:
m (numpy.ndarray) – A 2D square matrix of type
numpy.ndarray.- Returns:
invm – Inverse matrix of the input matrix
m: a 2D squarenumpy.ndarrayof typenumpy.longdoubleon systems on which it is more accurate thannumpy.double.- Return type: