[R] optimization problem

Erwin Kalvelagen erwin.kalvelagen at gmail.com
Sat Jan 16 08:33:25 CET 2010


Ravi Varadhan <rvaradhan <at> jhmi.edu> writes:
> dist <- function(A, B) { 
> # Frobenius norm of A - B	
> 	n <- nrow(A)
> 	sum(abs(B - A))
> }
> 

See http://mathworld.wolfram.com/FrobeniusNorm.html for a definition of the 
Frobenius norm.


Erwin

----------------------------------------------------------------
Erwin Kalvelagen
Amsterdam Optimization Modeling Group
erwin at amsterdamoptimization.com
http://amsterdamoptimization.com



More information about the R-help mailing list