Skip to main content
欢迎来到PAWPAW技术文档网站,了解更多信息。

16-bit Complex Scalar Floating-Point API

float_complex_s16_t float_complex_s16_mul()​

将两个 float_complex_s16_t 相乘。

输入参数 xx 和 yy 进行乘法运算(使用复数乘法),得到结果 aa,并返回该结果。

操作:

a←x⋅ya \leftarrow x \cdot y

参数:

  • const float_complex_s16_t x – [in] 输入操作数 xx

  • const float_complex_s16_t y – [in] 输入操作数 yy

返回值:

  • 返回复数乘积 aa,即 xx 和 yy 的乘积。

float_complex_s16_t float_complex_s16_add()​

将两个 float_complex_s16_t 相加。

输入参数 xx 和 yy 进行加法运算,得到结果 aa,并返回该结果。

操作:

a←x+ya \leftarrow x + y

参数:

  • const float_complex_s16_t x – [in] 输入操作数 xx

  • const float_complex_s16_t y – [in] 输入操作数 yy

返回值:

  • 返回和 aa,即 xx 和 yy 的和。

float_complex_s16_t float_complex_s16_sub()​

从一个 float_complex_s16_t 中减去另一个。

从输入参数 xx 中减去输入参数 yy,得到结果 aa,并返回该结果。

操作:

a←x−ya \leftarrow x - y

参数:

  • const float_complex_s16_t x – [in] 输入操作数 xx

  • const float_complex_s16_t y – [in] 输入操作数 yy

返回值:

  • 返回差 aa,即 xx 和 yy 的差。