amalthea.matrixmath

Undocumented in source.

Members

Aliases

det
alias det = calcDeterminant
Undocumented in source.

Functions

calcDeterminant
T calcDeterminant(T[][] m)

The function gets determinant of matrix.

calcMinor
auto calcMinor(T[][] mat, size_t i, size_t j)

The function gets minor of matrix by i,j.

eye
T[][] eye(size_t matrixDimension)

The template function returns a two-dimensional array with ones on the main diagonal and zeros elsewhere.

multiply
auto multiply(T1[][] m1, T2[][] m2)

The function multiplies two matrices.

multiply
auto multiply(T[][] m, E value)

The function multiplies the matrix by a number.

multiply
auto multiply(E value, T[][] m)
Undocumented in source. Be warned that the author may not have intended to support it.
ndim
size_t ndim(T matrix)

Number of array dimensions.

shape
size_t[] shape(A arr)

Lengths of the corresponding array dimensions.

summarize
auto summarize(T[][] m1, T[][] m2)

The function gets the sum of two matrices.

transpose
T[][] transpose(T[][] m)

Matrix transpose.

Meta