Matrix.opBinary

  1. auto opBinary(auto ref const(Matrix!(bH, bW, X)) mtr)
  2. auto opBinary(auto ref const(X) b)
  3. auto opBinary(auto ref const(Matrix!(bH, bW, X)) mtr)
  4. auto opBinary(auto ref const(Vector!(K, X)) v)
    struct Matrix(size_t H, size_t W, E)
    pure
    opBinary
    const
    (
    string op
    size_t K
    X
    )
    (
    auto ref const(Vector!(K, X)) v
    )
    if (
    op == "*" &&
    allowSomeOp(W, K)
    &&
    isValidOp!("*", E, X)
    &&
    isValidOp!("+", E, E)
    )

Meta