transpose

Transpose (flip) a matrix.

  1. Matrix!Number transpose(const Matrix!Number matrix)
    @safe pure nothrow
    Matrix!Number
    transpose
    (
    Number
    )
    (
    const Matrix!Number matrix
    )
    out (val) { assert (matrix.columnCount == val.rowCount); assert (matrix.rowCount == val.columnCount); }
  2. Matrix!(Number, columnCount, rowCount) transpose(ref const Matrix!(Number, rowCount, columnCount) matrix)
  3. Matrix!(Number, columnCount, rowCount) transpose(const Matrix!(Number, rowCount, columnCount) matrix)

Parameters

matrix
Type: Matrix!Number

The matrix to produce a transpose for.

Return Value

Type: Matrix!Number

A new matrix which is the transpose of the given matrix.

Meta