本文整理汇总了C++中FloatArray::reverse方法的典型用法代码示例。如果您正苦于以下问题:C++ FloatArray::reverse方法的具体用法?C++ FloatArray::reverse怎么用?C++ FloatArray::reverse使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FloatArray
的用法示例。
在下文中一共展示了FloatArray::reverse方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: correlateInitialized
void FloatArray::correlateInitialized(FloatArray operand2, FloatArray destination){
ASSERT(destination.size >= size+operand2.size-1, "Destination array too small"); //TODO: change CMSIS docs, which state a different size
/// @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>
#ifdef ARM_CORTEX
arm_correlate_f32(data, size, operand2.data, operand2.size, destination);
#else
//correlation is the same as a convolution where one of the signals is flipped in time
//so we flip in time operand2
operand2.reverse();
//and convolve it with fa to obtain the correlation
convolve(operand2, destination);
//and we flip back operand2, so that the input is not modified
operand2.reverse();
#endif /* ARM_CORTEX */
}