我可以像这样初始化float32x4_t:
const float32x4x4_t zero = { 0.0f,0.0f,0.0f };
const float32x4x4_t one = { 1.0f,1.0f,};
float32x4x4_t是4×4矩阵,构建如下:
typedef struct float32x4x4_t { float32x4_t val[4]; } float32x4x4_t;
我该如何初始化这个const结构?
解决方法
const float32x4x4_t nameOfVariableHere = {{ {1.0f,1.0f},{1.0f,1.0f} }};
括号的第一级用于结构.第二级是float32x4_t的数组.第3级是float32x4_t本身.