MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / scaleVector

Function scaleVector

Transceiver52M/sigProcLib.cpp:958–975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

956}
957
958void 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 */
978void conjugateVector(signalVector &x)

Callers 6

initMethod · 0.70
fixRadioVectorMethod · 0.70
pullRadioVectorMethod · 0.70
generateMidambleFunction · 0.70
demodulateBurstFunction · 0.70
designDFEFunction · 0.70

Calls 4

beginMethod · 0.45
endMethod · 0.45
isRealOnlyMethod · 0.45
realMethod · 0.45

Tested by

no test coverage detected