corrected an error resulting from deallocating pinned Eigen vector and matrix memory after CUDA/CUBLAS/MAGMA shutdown