在线性代数中,行向量是一个 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.
因此,至少从目前的代码使用方式来说,尚不能进行向量化。
Therefore, at least the way the code presently stands, it cannot be vectorized.
应用推荐