Description Usage Arguments Value Author(s) See Also Examples
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.
1 |
A |
Numeric Matrix. Integer matrices are not allowed. |
List with the numeric matrix A^T A as element.
Thomas Welchowski welchow@imbie.meb.uni-bonn.de
1 2 3 | A <- matrix(seq(-1, 1, length.out=9), nrow=3, ncol=3)
crossprodRcpp(A)[[1]]
all.equal(crossprodRcpp(A)[[1]], crossprod(A))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.