crossprodRcpp: Calculates the cross product of a matrix

Description Usage Arguments Value Author(s) See Also Examples

View source: R/RcppExports.R

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.

Usage

1

Arguments

A

Numeric Matrix. Integer matrices are not allowed.

Value

List with the numeric matrix A^T A as element.

Author(s)

Thomas Welchowski welchow@imbie.meb.uni-bonn.de

See Also

crossprod

Examples

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))

kernDeepStackNet documentation built on May 2, 2019, 8:16 a.m.