So we see that I've doubled the size of the vector but I've much more than doubled the number of calls.
所以我们看到我,把向量的大小翻倍了,但是我调用的次数,不仅仅是翻倍了。
But I know when I multiply a vector by a number, I get a vector in the same direction.
但是我所知道的是当矢量乘以一个常数,我会得到一个同方向的矢量
to the n, every value in the 1 bit vector we looked at last time is either 0 or 1. So it's a binary n number of n bits, 2 to the n.
从2到n,我们上次看到的,位向量的每个值不是0就是,所以它是n,比特的二进制数,从2到。
Alright, next thing I want to do is to define the vector that plays the role of the number 0.
接下来我想做的是定义一个矢量,它相当于数字0
The beauty of that is now we have discovered a notion of what it means to multiply a vector by a number.
现在最美妙的就是我们就已经知道,数字乘以矢量的意义
You can take this vector, multiply it by one number, take that vector, multiply it by another number, add the two of them.
比如将这个矢量,乘上一个数,然后将另一个矢量,乘上另外一个数,把这两个矢量相加
So multiplying a vector by a number means stretch it by that factor.
所以用数字乘以矢量,就相当于将它伸长了相应的倍数
You should know what multiplying a vector by a number means.
你需要知道数乘矢量的意义
应用推荐