You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: LibSource/ComplexFloatArray.cpp
+32-17Lines changed: 32 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
5
5
floatComplexFloatArray::mag(constint i){
6
6
float result;
7
+
/// @note When built for ARM Cortex-M processor series, this method uses the optimized <a href="http://www.keil.com/pack/doc/CMSIS/General/html/index.html">CMSIS library</a>
7
8
#ifdef ARM_CORTEX
8
9
arm_cmplx_mag_f32((float*)&(data[i]), &result,1);
9
10
#else
@@ -12,18 +13,20 @@ float ComplexFloatArray::mag(const int i){
/// @note When built for ARM Cortex-M processor series, this method uses the optimized <a href="http://www.keil.com/pack/doc/CMSIS/General/html/index.html">CMSIS library</a>
/// @note When built for ARM Cortex-M processor series, this method uses the optimized <a href="http://www.keil.com/pack/doc/CMSIS/General/html/index.html">CMSIS library</a>
/// @note When built for ARM Cortex-M processor series, this method uses the optimized <a href="http://www.keil.com/pack/doc/CMSIS/General/html/index.html">CMSIS library</a>
/// @note When built for ARM Cortex-M processor series, this method uses the optimized <a href="http://www.keil.com/pack/doc/CMSIS/General/html/index.html">CMSIS library</a>
int minSize=min(size,operand2.getSize()); //TODO: shall we take this out and allow it to segfault?
70
+
ASSERT(size==operand2.getSize(), "Wrong size");
71
+
/// @note When built for ARM Cortex-M processor series, this method uses the optimized <a href="http://www.keil.com/pack/doc/CMSIS/General/html/index.html">CMSIS library</a>
/// @note When built for ARM Cortex-M processor series, this method uses the optimized <a href="http://www.keil.com/pack/doc/CMSIS/General/html/index.html">CMSIS library</a>
int minSize= min(size,operand2.getSize()); //TODO: shall we take this out and allow it to segfault?
101
+
ASSERT(size==operand2.getSize(), "Wrong size");
102
+
/// @note When built for ARM Cortex-M processor series, this method uses the optimized <a href="http://www.keil.com/pack/doc/CMSIS/General/html/index.html">CMSIS library</a>
/// @note When built for ARM Cortex-M processor series, this method uses the optimized <a href="http://www.keil.com/pack/doc/CMSIS/General/html/index.html">CMSIS library</a>
voidComplexFloatArray::copyTo(ComplexFloat* other, int length){
195
204
ASSERT(size >= length, "Array too small");
205
+
/// @note When built for ARM Cortex-M processor series, this method uses the optimized <a href="http://www.keil.com/pack/doc/CMSIS/General/html/index.html">CMSIS library</a>
@@ -205,6 +215,7 @@ void ComplexFloatArray::copyTo(ComplexFloat* other, int length){
205
215
206
216
voidComplexFloatArray::copyFrom(ComplexFloat* other, int length){
207
217
ASSERT(size >= length, "Array too small");
218
+
/// @note When built for ARM Cortex-M processor series, this method uses the optimized <a href="http://www.keil.com/pack/doc/CMSIS/General/html/index.html">CMSIS library</a>
208
219
#ifdef ARM_CORTEX
209
220
arm_copy_f32((float *)other, (float *)data, length*sizeof(ComplexFloat)/sizeof(float)); //note the *2 multiplier which accounts for real and imaginary parts
210
221
#else
@@ -214,7 +225,9 @@ void ComplexFloatArray::copyFrom(ComplexFloat* other, int length){
214
225
}
215
226
#endif/* ARM_CORTEX */
216
227
}
228
+
217
229
voidComplexFloatArray::setAll(float value){
230
+
/// @note When built for ARM Cortex-M processor series, this method uses the optimized <a href="http://www.keil.com/pack/doc/CMSIS/General/html/index.html">CMSIS library</a>
218
231
#ifdef ARM_CORTEX
219
232
arm_fill_f32(value, (float *)data, size *2 ); //note the *2 multiplier which accounts for real and imaginary parts
0 commit comments