fftderiv3 works by slice now, tested on a few variations of matrix assignments, although some row order seems to be swapped from matlab comparison