Dead code in mixing
Posted: Fri Feb 25, 2011 4:46 pm
Hello,
In my current 6.7 branch, I've put all mixing routines in a unique directory 56_mixing. Now, that they have been isolated, I'm looking at simplifying them. I've found several dead parts in these routines:
- in sqnormm_v(), mult is always 1 so the do loop is useless ;
- in dotprodm_v(), mult1 and mult2 are also always 1 ;
- in dotprodm_v(), cpldot is always 1 so the else part of the if is useless.
Is this code relevant for future use or can I remove it to have smaller and easier to read routines ?
Damien.
In my current 6.7 branch, I've put all mixing routines in a unique directory 56_mixing. Now, that they have been isolated, I'm looking at simplifying them. I've found several dead parts in these routines:
- in sqnormm_v(), mult is always 1 so the do loop is useless ;
- in dotprodm_v(), mult1 and mult2 are also always 1 ;
- in dotprodm_v(), cpldot is always 1 so the else part of the if is useless.
Is this code relevant for future use or can I remove it to have smaller and easier to read routines ?
Damien.