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)
| 281 | // |
| 282 | // Deprecated: use SingletonFunctionBinding |
| 283 | func SingletonFunctionImpl(fn functions.FunctionOp, traits ...int) FunctionOpt { |
| 284 | return decls.SingletonFunctionBinding(fn, traits...) |
| 285 | } |
| 286 | |
| 287 | // SingletonFunctionBinding creates a singleton function definition to be used with all function overloads. |
| 288 | // |