inversion

fun inversion(source: Tensor, result: Tensor)

Compute the matrix inversion.

Parameters

source

the matrix to be inverted. It must be a 1-channel multi-dimensional tensor of 2 dimensions.

result

the required result to store the matrix inversion. It must also be a 1-channel multi-dimensional tensor of 2 dimensions. It dimensions must be the same as those of source. Its data type must be the same as that of source.

Throws

If the usage is not allowed by the SpatialML run-time Framework, or if the framework encounter internal error and cannot perform the requested behavior.