cupy.linalg.tensorsolve#
- cupy.linalg.tensorsolve(a, b, axes=None)[source]#
Solves tensor equations denoted by
ax = b.Suppose that
bis equivalent tocupy.tensordot(a, x). This function computes tensorxfromaandb.- Parameters:
a (cupy.ndarray) – The tensor with
len(shape) >= 1b (cupy.ndarray) – The tensor with
len(shape) >= 1axes (tuple of ints) – Axes in
ato reorder to the right before inversion.
- Returns:
The tensor with shape
Qsuch thatb.shape + Q == a.shape.- Return type:
Warning
This function calls one or more cuSOLVER routine(s) which may yield invalid results if input conditions are not met. To detect these invalid results, you can set the linalg configuration to a value that is not ignore in
cupyx.errstate()orcupyx.seterr().See also