在线性代数中,行向量是一个 1×n的矩阵,即矩阵由一个含有n个元素的行所组成即行向量。行向量的转置是一个列向量,反之亦然。所有的行向量的集合形成一个向量空间,它是所有列向量集合的对偶空间。
如果对代码进行向量化,由于您正在将这些值当作字节进行处理,这意味着每条指令都要一次操作 16 个值!
If you vectorize this code, since you are treating the values as bytes, that means that each instruction will operate on 16 values at once!
请记住:删除分支的目的在于对代码进行向量化。
Remember that the point of removing the branch was so that you can vectorize the code.
对向量处理过程最明显的优化是对代码进行向量化。
The most obvious optimization to make on a vector process is to vectorize the code.
应用推荐