Function reference · Linear algebra

invert

Returns the inverse of a square matrix.

invert(matrix) computes the matrix inverse without modifying the supplied Matrix.

Examples

These examples use Nerdamer Notation.

Invert a 2 by 2 matrix.

invert(matrix([1,2],[3,4]))

Interfaces

The same operation is available through the interfaces below.

Nerdamer Notation · nerdamer API · Direct API

Nerdamer Notation

Use this form inside input passed to nerdamer(...).

invert(arg1)

nerdamer.invert

Call the operation through the default nerdamer import.

nerdamer.invert(M: Matrix): Matrix

Parameters

NameTypeDescription
MMatrix—

Returns

Matrix

Browse the nerdamer API →

Direct JavaScript / TypeScript API

Import the operation directly from its package entry point.

import { invert } from 'nerdamer/structures';
invert(M: Matrix): Matrix

Parameters

NameTypeDescription
MMatrix—

Returns

Matrix

Browse nerdamer/structures →

← Back to Function reference