LU decomposition and Toeplitz decomposition of a neural network