Remove unnecessary parentheses

This commit is contained in:
Edgar Geier 2023-03-06 23:39:38 +01:00
parent 52e6db99c6
commit 171e92bc20
No known key found for this signature in database
GPG Key ID: 7A65B51FD6B75EF5

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();
}
}
}