计算x的y次幂,x与y均为向量。
C interface:
float32x4_t svml128_pow_f32(float32x4_t src1, float32x4_t src2);
float64x2_t svml128_pow_f64(float64x2_t src1, float64x2_t src2);
参数名 |
类型 |
描述 |
输入/输出 |
---|---|---|---|
src1 |
|
表示输入向量的浮点值。 |
输入 |
src2 |
|
表示输入向量的浮点值。 |
输入 |
C: "ksvml.h"
float32x4_t src = {0.0f, 2.0f, INFINITY, NAN}; float32x4_t src2 = {0.0f, 2.0f, INFINITY, NAN}; float32x4_t dst = svml128_pow_f32(src, src2); printf("%.15g %.15g %.15g %.15g\n", dst[0], dst[1], dst[2], dst[3]); /** * Output dst: * 1 4 inf nan * */