sweep.c: Use gsl_matrix_memcpy instead of element by element copying.
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 15 Nov 2011 14:47:10 +0000 (15:47 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 15 Nov 2011 14:47:10 +0000 (15:47 +0100)
commit019d870c9a961108b6b5e762ce968db2e06203a7
tree6c7a32386325c93a10f06cf8e5c3564c39231ab2
parent90afc1f0572a82bd6eb4532350b368c685b3cc7b
sweep.c: Use gsl_matrix_memcpy instead of element by element copying.

Although only the upper triangle needs to be copied, there is no
disadvantage copying the entire matrix (the lower triangle is never read)
and the expense of using two loops is likely to outweigh the saving achieved
by avoiding the other triangle.
lib/linreg/sweep.c