dlsl.matrix

dlsl.matrix

Members

Aliases

mat2
alias mat2 = Matrix!(float, 2, 2)

predefined matrix types, the first number represents the number of cols and the second the number of columns, if there's just one it's a nxn matrix. All of these matrices are floating - point matrices.

Functions

determinant
auto determinant(Matrix mat)

//////////////

invert
auto invert(Matrix mat)

/////////

invertTR
auto invertTR(Matrix mat)

////////////////////////////////////////////

isinf
bool isinf(const ref genType mat)

query if any entry is inf

isnan
bool isnan(const ref genType mat)

query if any entry is nan

isvalid
bool isvalid(const ref genType mat)

query if all entries are not nan and not inf

transpose
auto transpose(Matrix mat)

Transpose /// //////////////

Structs

Matrix
struct Matrix(type, int numCols, int numRows)

Base template for all matrix types. See predefined matrix types

Templates

isMatrix
template isMatrix(T)

If T is a matrix, this evaluates to true, otherwise false

Meta

Authors

Peter Particle ( based on gl3n by David Herberth )

License

MIT

Note: All methods marked with pure are weakly pure since, they all access an instance member. All static methods are strongly pure.