Mat.this

Constructs a matrix from the given 2-dimensional array.

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

Parameters

elements T[colCount][rowCount]

The elements to place in the matrix.

Meta