PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Robin Hankin
> Sent: Friday, June 22, 2007 9:28 AM
> To: RHelp help
> Subject: [R] vectorize a function
>
> Hello everyone
>
> suppose I have an integer vector "a" of length "n" and a
> symmetric matrix &quo
Hello everyone
suppose I have an integer vector "a" of length "n" and
a symmetric matrix "M" of size n-by-n.
Vector "a" describes a partition of a set of "n" elements
and matrix M describes a penalty function: row i column
j represents the penalty if element i and element j
are in the same partit