For a 1D FFT it's O(m log m)
.
For a 2D FFT you have to do m x 1D FFTs in each axis so that's O(2 m^2 log m)
= O(m^2 log m)
.
It's too early in the morning here to get my head round n >= 3
but I'm guessing it's probably:
O(m^n log m)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…