How to optimize toeplitz jacobian function

Post eliminated due to no response