In addition to exporting convenience classes representing a variety of linear algebra-related data types, each such type also has its own module
that exports individual functions. For example, a two-by-two matrix can be imported in two different ways:

import { Matrix2 } from"@lakuna/umath";

importMatrix2from"@lakuna/umath/Matrix2";

Using the convenience class, multiplying two two-by-two matrices would look like this: