There are too many issues when running in 64bit devices, because in 64 bit device, the float length is 8. In the function 'PFMatrixMakeFromArray', the author used the wrong offset 'sizeof(float)' instead of 'n', changing CGFloat _t = data+(i_n); will be OK.