Fix warnings.
This commit is contained in:
parent
86fa4bee52
commit
18b9f82042
@ -58,7 +58,7 @@ impl<N: Scalar + Zero, R: Dim, C: Dim, S: Storage<N, R, C>> Matrix<N, R, C, S> {
|
||||
for j in 0..ncols.value() {
|
||||
// FIXME: use unchecked column indexing
|
||||
let mut res = res.column_mut(j);
|
||||
let mut src = self.column(j);
|
||||
let src = self.column(j);
|
||||
|
||||
for (destination, source) in irows.clone().enumerate() {
|
||||
unsafe {
|
||||
|
@ -78,7 +78,8 @@ impl<N: RealField, D: Dim, S: CsStorage<N, D, D>> CsMatrix<N, D, D, S> {
|
||||
}
|
||||
|
||||
for (i, val) in column {
|
||||
b[i] -= b[j] * val;
|
||||
let bj = b[j];
|
||||
b[i] -= bj * val;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -119,7 +120,8 @@ impl<N: RealField, D: Dim, S: CsStorage<N, D, D>> CsMatrix<N, D, D, S> {
|
||||
|
||||
if let Some(diag) = diag {
|
||||
for (i, val) in column {
|
||||
b[j] -= val * b[i];
|
||||
let bi = b[i];
|
||||
b[j] -= val * bi;
|
||||
}
|
||||
|
||||
b[j] /= diag;
|
||||
@ -178,7 +180,8 @@ impl<N: RealField, D: Dim, S: CsStorage<N, D, D>> CsMatrix<N, D, D, S> {
|
||||
}
|
||||
|
||||
for (i, val) in column {
|
||||
workspace[i] -= workspace[j] * val;
|
||||
let wj = workspace[j];
|
||||
workspace[i] -= wj * val;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
#![cfg(feature = "arbitrary")]
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
use alga::linear::{ProjectiveTransformation, Transformation};
|
||||
use na::{
|
||||
Isometry2, Isometry3, Point2, Point3, Rotation2, Rotation3, Translation2, Translation3,
|
||||
UnitComplex, UnitQuaternion, Vector2, Vector3,
|
||||
|
@ -1,7 +1,6 @@
|
||||
#![cfg(feature = "arbitrary")]
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
use alga::linear::{ProjectiveTransformation, Transformation};
|
||||
use na::{Isometry3, Point3, Similarity3, Translation3, UnitQuaternion, Vector3};
|
||||
|
||||
quickcheck!(
|
||||
|
Loading…
Reference in New Issue
Block a user