SingletonFunctionImpl creates a singleton function definition to be used with all function overloads. Note, this approach works well if operand is expected to have a specific trait which it implements, e.g. traits.ContainerType. Otherwise, prefer per-overload function bindings. Deprecated: use Sin
(fn functions.FunctionOp, traits ...int)
| 277 | // |
| 278 | // Deprecated: use SingletonFunctionBinding |
| 279 | func SingletonFunctionImpl(fn functions.FunctionOp, traits ...int) FunctionOpt { |
| 280 | return decls.SingletonFunctionBinding(fn, traits...) |
| 281 | } |
| 282 | |
| 283 | // SingletonFunctionBinding creates a singleton function definition to be used with all function overloads. |
| 284 | // |