Convolution and cross-correlation in neural networks