dstruct.matrix

This module defines a matrix data structure and various operations on this data structure. All operations are @safe pure nothrow, so they can be used in any such function, and the results of any operation can be implicitly converted to an immutable type.

Members

Functions

rows
Rows!Number rows(Matrix!Number matrix)
transpose
Matrix!Number transpose(const Matrix!Number matrix)
Matrix!(Number, columnCount, rowCount) transpose(ref const Matrix!(Number, rowCount, columnCount) matrix)
Matrix!(Number, columnCount, rowCount) transpose(const Matrix!(Number, rowCount, columnCount) matrix)

Transpose (flip) a matrix.

Structs

Matrix
struct Matrix(Number)

A matrix type. This is a 2D array of a guaranteed uniform size.

Matrix
struct Matrix(Number, size_t _rowCount, size_t _columnCount)

A static matrix type. This is a value matrix value type created directly on the stack.

Rows
struct Rows(Number)

This class defines a range of rows over a matrix.

Templates

Matrix
template Matrix(Number, size_t rowCount, size_t columnCount)

Alias all (M, 0), (0, N) size static matrices into one single zero-sized type of size (0, 0).

Meta