Back to Numerical Arrays (NumPy)
np.tensorsolve
Solve the tensor equation a x = b for x.
Syntax
np.tensorsolve(a, b, axes?)
Description
Solve the tensor equation a x = b for x. It is assumed that all indices of x are summed over in the product, together with the rightmost indices of a.
Parameters
| Name | Description |
|---|---|
| a | - Coefficient tensor |
| b | - Right-hand side tensor |
| axes(optional) | - Axes in a to reorder to the right, for the solve |
Returns
Promise<NDArray>