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