src/fmat.c: use memcpy on each column