normF | R Documentation |
A function to compute the Frobenius norm of a matrix
normF(X)
X |
A matrix. |
The Frobenius norm of X.
Niels Waller
data(BadRLG)
out <- smoothLG(R = BadRLG, Penalty = 50000)
cat("\nGradient at solution:", out$gr,"\n")
cat("\nNearest Correlation Matrix\n")
print( round(out$RLG,8) )
cat("\nFrobenius norm of (NPD - PSD) matrix\n")
print(normF(BadRLG - out$RLG ))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.