Calculate Sum of Squares
ssq(X)
Numeric vector or matrix.
The sum of squared elements of \(X\)
This is the Frobenius norm of \(X\).
# NOT RUN { ssq(tcrossprod(1:5)) ssq(rnorm(1e5))/1e5 # }
Run the code above in your browser using DataLab