| 956 | } |
| 957 | |
| 958 | void scaleVector(signalVector &x, |
| 959 | complex scale) |
| 960 | { |
| 961 | signalVector::iterator xP = x.begin(); |
| 962 | signalVector::iterator xPEnd = x.end(); |
| 963 | if (!x.isRealOnly()) { |
| 964 | while (xP < xPEnd) { |
| 965 | *xP = *xP * scale; |
| 966 | xP++; |
| 967 | } |
| 968 | } |
| 969 | else { |
| 970 | while (xP < xPEnd) { |
| 971 | *xP = xP->real() * scale; |
| 972 | xP++; |
| 973 | } |
| 974 | } |
| 975 | } |
| 976 | |
| 977 | /** in-place conjugation */ |
| 978 | void conjugateVector(signalVector &x) |
no test coverage detected