Back to Numerical Arrays (NumPy)
np.tensorinv
Compute the 'inverse' of an N-dimensional array.
Syntax
np.tensorinv(a, ind?)
Description
Compute the 'inverse' of an N-dimensional array. The result is an inverse for a with respect to the tensordot operation tensordot(a, b, ind).
Parameters
| Name | Description |
|---|---|
| a | - Tensor to pseudo-invert |
| ind(optional) | - Number of first indices that are involved in the inverse sum |
Returns
Promise<NDArray>