This operation performs elementwise linear regression of the inputs
along a named dimension. The output has length along the named
dimension, reporting the slope and intercept of the fitted line, but
otherwise has the same dimensionality as the
input.