multiplicative-inverse ( x -- y )

Extra matrix operations

Extra matrix operations

Prev: | >cofactors ( matrix -- matrix' ) |

Next: | covariance-matrix ( matrix -- cov ) |

Vocabulary

math.matrices.extras

Inputs

Outputs

Word description

Calculate the multiplicative inverse of the input.

If the input is a square-matrix, this is done by multiplying the transpose of the cofactors of the minors of the input matrix by the inverse of the determinant of the input matrix.

Notes

Errors

non-square-determinant if the input matrix is not a square-matrix.

Definition

math.matrices.extras

Inputs

x | a matrix |

Outputs

y | a matrix |

Word description

Calculate the multiplicative inverse of the input.

If the input is a square-matrix, this is done by multiplying the transpose of the cofactors of the minors of the input matrix by the inverse of the determinant of the input matrix.

Notes

• | The shape of the input matrix is preserved in the output. |

• | This word is intended for use with "flat" (2-dimensional) matrices. |

• | This word assumes that elements of the input matrix are compatible with the following words: determinant ( matrix -- determinant ) >cofactors ( matrix -- matrix' ) 1/det ( matrix -- 1/det ) |

Errors

non-square-determinant if the input matrix is not a square-matrix.

Definition

This documentation was generated offline from a
`load-all`

image. If you want, you can also
browse the documentation from within the UI developer tools. See
the Factor website
for more information.

Factor 0.100 x86.64 (2281, heads/master-88dee6fe39, Aug 14 2024 13:06:28)