sily.matrix

Flexible templated matrix with some math utils

Members

Aliases

imat
alias imat(size_t H, size_t W) = Matrix!(int, H, W)
imat2
alias imat2 = imat!(2, 2)
imat3
alias imat3 = imat!(3, 3)
imat4
alias imat4 = imat!(4, 4)

GLSL style aliases

mat
alias mat(T, size_t H, size_t W) = Matrix!(T, H, W)
alias mat(size_t H, size_t W) = Matrix!(float, H, W)
mat2
alias mat2 = mat!(2, 2)
mat3
alias mat3 = mat!(3, 3)
mat4
alias mat4 = mat!(4, 4)

GLSL style aliases

Structs

Matrix
struct Matrix(T, size_t H, size_t W)

Matrix implementation, row-major right handed Basic operations:

Templates

isMatrix
template isMatrix(M)

Is V a matrix with any size and any type

isMatrix
template isMatrix(M, size_t H2, size_t W2)

Is V a vector with size H2xW2 and any type

isMatrix
template isMatrix(M, T)

Is V a vector with any size and type T

isMatrix
template isMatrix(M, T, size_t H, size_t W)

Is V a vector with size H2xW2 and type T

Meta