dlib.math.matrix

Square matrices with static memory allocation

Members

Aliases

Matrix2x2d, Matrix2d
alias Matrix2x2d, Matrix2d = Matrix!(double, 2)

Alias for double precision 2x2 Matrix

Matrix2x2f, Matrix2f
alias Matrix2x2f, Matrix2f = Matrix!(float, 2)

Alias for single precision 2x2 Matrix

Matrix3x3d, Matrix3d
alias Matrix3x3d, Matrix3d = Matrix!(double, 3)

Alias for double precision 3x3 Matrix

Matrix3x3f, Matrix3f
alias Matrix3x3f, Matrix3f = Matrix!(float, 3)

Alias for single precision 3x3 Matrix

Matrix4x4d, Matrix4d
alias Matrix4x4d, Matrix4d = Matrix!(double, 4)

Alias for double precision 4x4 Matrix

Matrix4x4f, Matrix4f
alias Matrix4x4f, Matrix4f = Matrix!(float, 4)

Alias for single precision 4x4 Matrix

mat2
alias mat2 = Matrix2x2f

Short aliases

mat3
alias mat3 = Matrix3x3f
Undocumented in source.
mat4
alias mat4 = Matrix4x4f
Undocumented in source.

Functions

matrix3x3to4x4
Matrix!(T, 4) matrix3x3to4x4(Matrix!(T, 3) m)

Converts 3x3 matrix to 4x4 matrix. 4x4 matrix defaults to identity

matrix4x4to3x3
Matrix!(T, 3) matrix4x4to3x3(Matrix!(T, 4) m)

Converts 4x4 matrix to 3x3 matrix. 3x3 matrix defaults to identity

matrixToStr
string matrixToStr(Matrix!(T, N) m)

Formatted matrix printer

matrixf
auto matrixf(A arr)

Matrix factory function

Structs

Matrix
struct Matrix(T, size_t N)

Square (NxN) matrix.

Meta

Authors

Timur Gafarov, Martin Cejp