dispatchNumeric

fnauto dispatchNumeric(alias kernel, Args...)(string opName, DataType dtype, Args args)

The numeric-only counterpart of dispatch: a plain switch over the ten numeric kinds whose default throws, for kernels that only make sense for numbers (BOOLEAN, STRING and the temporal kinds are rejected at runtime with the operation name in the message).

Parameters

kernela module-level template with a Kind value parameter
opNamethe operation name for the error message
dtypethe dtype whose kind selects the instantiation
argsforwarded by value to the kernel

Returns

whatever kernel!K returns (one type for all numeric kinds).

Throws

DataFrameException when dtype is not numeric.