crossprodRcpp: Calculates the cross product of a matrix
Description
This is an computational efficient help function to calculate the GCV loss of the KDSN. Calculates the matrix product A^T A. It is written in C and faster than the regular R version.