pca: shrink auxiliary function name
pca: add macro to decide data type
pca: reimplement error check functions as macros

* So now macros __FILE__ and __LINE__ work as intended.
pca: remove some clutter
pca: implement sum of patches in CUBLAS as part of eigenvector problem