Mat.opBinary

Operation of a matrix with a scalar on its right.

  1. auto opBinary(Mat!(U, rowLength, UC) mat)
  2. auto opBinary(Mat!(U, rowLength, columnLength) oth)
  3. auto opBinary(Mat!(U, UR, UC) oth)
  4. auto opBinary(Vec!(U, N) vec)
  5. auto opBinary(U val)
    struct Mat(T, size_t R, size_t C)
    const
    opBinary
    (
    string op
    U
    )
    (
    in U val
    )
    if (
    (
    op == "+" ||
    op == "-"
    ||
    op == "*"
    ||
    op == "/"
    )
    &&
    !is(CommonType!(T, U) == void)
    )

Meta