fftw.cpp: use methods for size and shape