From de873b9758028747e61d480d3109be7128655fe7 Mon Sep 17 00:00:00 2001 From: Timo Betcke Date: Mon, 16 Dec 2024 22:16:54 +0000 Subject: [PATCH] Reformatted code --- .../source_to_target/blas/single_node.rs | 12 ++++-------- kifmm/src/fmm/field_translation/target/multi_node.rs | 6 ++---- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/kifmm/src/fmm/field_translation/source_to_target/blas/single_node.rs b/kifmm/src/fmm/field_translation/source_to_target/blas/single_node.rs index 9c393e5c..11653724 100644 --- a/kifmm/src/fmm/field_translation/source_to_target/blas/single_node.rs +++ b/kifmm/src/fmm/field_translation/source_to_target/blas/single_node.rs @@ -564,10 +564,8 @@ where let check_potential = empty_array::() .simple_mult_into_resize( u.r(), - empty_array::().simple_mult_into_resize( - vt.r(), - multipoles_subset.r(), - ), + empty_array::() + .simple_mult_into_resize(vt.r(), multipoles_subset.r()), ); for (multipole_idx, &local_idx) in local_idxs.iter().enumerate() { @@ -703,10 +701,8 @@ where let check_potential = empty_array::() .simple_mult_into_resize( u.r(), - empty_array::().simple_mult_into_resize( - vt.r(), - multipoles_subset.r(), - ), + empty_array::() + .simple_mult_into_resize(vt.r(), multipoles_subset.r()), ); for (local_multipole_idx, &global_local_idx) in diff --git a/kifmm/src/fmm/field_translation/target/multi_node.rs b/kifmm/src/fmm/field_translation/target/multi_node.rs index 9959702e..cee657c8 100644 --- a/kifmm/src/fmm/field_translation/target/multi_node.rs +++ b/kifmm/src/fmm/field_translation/target/multi_node.rs @@ -95,10 +95,8 @@ where } for (i, target_vec_i) in target_vec.iter().enumerate().take(NSIBLINGS) { - let tmp = empty_array::().simple_mult_into_resize( - target_vec_i.r(), - parent_locals.r(), - ); + let tmp = empty_array::() + .simple_mult_into_resize(target_vec_i.r(), parent_locals.r()); for j in 0..chunk_size { let chunk_displacement = j * NSIBLINGS;