Add sparse support for numeric-linear-function.