mathed.types.matrix

Implementation of matrix in mathematical definition. Features:

  1. All matrix actions is checked at compile time
  2. Matrix contains only it's data, and nothing additional
  3. Almost all matrix actions is pure and nothrow

Usage: Just create matrix as in documentation below and treat it like a simple two-dimensional array (if you want to get some data from matrix or put it in) or number (if you need to do some mathematical action with matrix).

Members

Aliases

Matrix1f
alias Matrix1f = Matrix!(1, 1)
Undocumented in source.
Matrix1i
alias Matrix1i = Matrix!(1, 1, int)
Undocumented in source.
Matrix2f
alias Matrix2f = Matrix!(2, 2)
Undocumented in source.
Matrix2i
alias Matrix2i = Matrix!(2, 2, int)
Undocumented in source.
Matrix3f
alias Matrix3f = Matrix!(3, 3)
Undocumented in source.
Matrix3i
alias Matrix3i = Matrix!(3, 3, int)
Undocumented in source.
Matrix4f
alias Matrix4f = Matrix!(4, 4)
Undocumented in source.
Matrix4i
alias Matrix4i = Matrix!(4, 4, int)
Undocumented in source.

Static functions

DefaultInit
string DefaultInit(size_t Size)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Matrix
struct Matrix(size_t Lines, size_t Cols, Type = float)

Main matrix interface.

Templates

isMatrix (from mathed.utils.traits)
template isMatrix(alias Variable) via public import mathed.utils.traits : isMatrix;

Tests variable to be a matrix.

Meta

Authors

Vlad Rindevich (rindevich.vs@gmail.com).