Advertisement
Guest User

Untitled

a guest
Dec 13th, 2020
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.50 KB | None | 0 0
  1.  
  2.     let mut amp_vector = vec![amp_a,amp_b, amp_c, amp_d, amp_e];
  3.     let mut max_val = 0;
  4.  
  5.     for curr_phase_setting in phase_settings.iter().permutations(5) {
  6.         let mut i = 0;
  7.         let mut last_e_signal = 0;
  8.  
  9.         for j in 0..5 {
  10.             amp_vector[j].restart(program.clone());
  11.             amp_vector[j].add_input(*curr_phase_setting[j]);
  12.         }
  13.         // for mut  amp in amp_vector { why dosent this work..?
  14.         //    amp.restart(program.clone());
  15.         // }
  16.      ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement