求两个向量和的运算,叫做向量的加法。
The operation of finding the sum of two vectors is called vector addition .
是的,几何上两个向量相加,你就把一个向量的尾巴,放到另一个向量的头上去,那就是“头尾”加法,还有问题么?
Exactly. To add vectors geometrically you just put the head of the first vector and the tail of the second vector in the same place And then, it's head to tail addition Any other questions?
举例来说,spu_add (myvec, 2)就会生成一条ai(立即加法)指令,而spu_add (myvec, 2000)则首先会使用il将2000加载到自己的向量中,然后执行a(加法)指令。
For instance, spu_add (myvec, 2) generates an ai (add immediate) instruction, while spu_add (myvec, 2000) first loads the 2000 into its own vector using il and then performs the a (add) instruction.
应用推荐