inv

ivy.inv(x, f=None)[source]

Computes the (multiplicative) inverse of x matrix. Given a square matrix x, returns the matrix x_inv satisfying dot(x, x_inv) = dot(x_inv, x) = eye(x.shape[0]).

Parameters
  • x (array) – Matrix to be inverted.

  • f (ml_framework, optional) – Machine learning framework. Inferred from inputs if None.

Returns

(Multiplicative) inverse of the matrix x.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty