Mat.this

Constructs a matrix with all elements initialized to the given value.

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

Parameters

value T

The value to set all elements to.

Meta