transpose

Transpose (flip) a matrix.

  1. Matrix!Number transpose(const Matrix!Number matrix)
  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)
    @safe pure nothrow
    Matrix!(Number, columnCount, rowCount)
    transpose
    (
    Number
    size_t rowCount
    size_t columnCount
    )
    (
    const Matrix!(Number, rowCount, columnCount) matrix
    )

Parameters

matrix
Type: Matrix!(Number, rowCount, columnCount)

The matrix to produce a transpose for.

Return Value

Type: Matrix!(Number, columnCount, rowCount)

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

Meta