Merge pull request #1216 from geieredgar/remove-parentheses

Fix CI by removing unnecessary parentheses
This commit is contained in:
Sébastien Crozet 2023-03-07 09:46:34 +01:00 committed by GitHub
commit c0ad6a2cef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,11 +47,11 @@ impl<T: RealField, D1: Dim, S1: Storage<T, D1>> Vector<T, D1, S1> {
let u_f = cmp::min(i, vec - 1);
if u_i == u_f {
conv[i] += self[u_i].clone() * kernel[(i - u_i)].clone();
conv[i] += self[u_i].clone() * kernel[i - u_i].clone();
} else {
for u in u_i..(u_f + 1) {
if i - u < ker {
conv[i] += self[u].clone() * kernel[(i - u)].clone();
conv[i] += self[u].clone() * kernel[i - u].clone();
}
}
}