Mat.this

Constructs a matrix from the given elements.

  1. this(T[rowCount * colCount] elements)
  2. this(T[] elements)
    struct Mat(T, size_t rowCount, size_t colCount)
    this
    if (
    isNumeric!T &&
    rowCount > 0
    &&
    colCount > 0
    )
  3. this(T[colCount][rowCount] elements)
  4. this(Mat!(T, rowCount, colCount) other)
  5. this(T value)

Parameters

elements T[]

The elements to place in the matrix. Should be in row-major form.

Meta