This problem is to do with the numpy library.
From previous experience np.dot is the same as matrix multiplication. However I was under the assumption that multiplying two vectors is impossible as the dimensionality is wrong. So my question is, what does np.dot actually do to two vectors?
Furthermore, say I had the following code and assuming np.dot produces a scalar (as it says on the documentation).
x= np.dot(dc, self.c)[:self.ys]
where x is also a vector, how does the operation [:self.ys] change the result of the two vectors in an np.dot into a vector? I cannot find anything detailing on this.
self
and define the variables used). – MB-F[ ]
does not convert a scalar in a vector. It gives an errorIndexError: invalid index to scalar variable.
ifdot
returns a scalar. So either the code is wrong or the input is not what you think. – MB-F