18 cerr <<
"Error: Parameter is non square matrix in "
19 <<
"symmetrize(dmatrix&)\n";
24 dmatrix results(min, max, min, max);
25 for (
int i = min; i <=
max; ++i)
27 results(i, i) = matrix(i, i);
28 for (
int j = min; j < i; ++j)
30 results(i,j) = (matrix(i, j) + matrix(j, i)) * 0.5;
31 results(j,i) = results(i,j);
dmatrix symmetrize(const dmatrix &matrix)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Description not yet available.