Merge pull request #3 from aepsil0n/fix/swap

Fix call to swap function due to upstream changes.
This commit is contained in:
Sébastien Crozet 2014-02-14 10:32:54 +01:00
commit d9ace45141

View File

@ -7,7 +7,7 @@ use std::rand;
use std::num::{One, Zero};
use std::vec;
use traits::operations::ApproxEq;
use std::util;
use std::mem;
use structs::dvec::{DVec, DVecMulRhs};
use traits::operations::{Inv, Transpose, Mean, Cov};
use traits::structure::Cast;
@ -445,7 +445,7 @@ impl<N: Clone> Transpose for DMat<N> {
}
}
util::swap(&mut self.nrows, &mut self.ncols);
mem::swap(&mut self.nrows, &mut self.ncols);
}
else {
// FIXME: implement a better algorithm which does that in-place.