Skip to content

Commit 6270135

Browse files
committed
Remove unnecessary variable in vec_copy_scaled
1 parent 0db6811 commit 6270135

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

russell_lab/src/vector/vec_copy_scaled.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ pub fn vec_copy_scaled(v: &mut Vector, alpha: f64, u: &Vector) -> Result<(), Str
6464
}
6565

6666
// Process the rest in chunks of 4
67-
let mp1 = m;
68-
for i in (mp1..n).step_by(4) {
67+
for i in (m..n).step_by(4) {
6968
v[i] = alpha * u[i];
7069
v[i + 1] = alpha * u[i + 1];
7170
v[i + 2] = alpha * u[i + 2];

0 commit comments

Comments
 (0)