[SciPy-user] howto dot(a, b.T), some a or b coords are zeros
Wed Jan 2 13:28:40 CST 2008
I have 2 vectors a and b of shape (n, 1) (n can be 1...10^3, 10^4, may
be more); some coords of a or b usually are zeros (or both a and b, but
b is more often); getting matrix c = dot(a, b.T) is required (c.shape =
What's the best way to speedup calculations (w/o using scipy, only numpy)?
(I intend to use the feature to provide a minor enhancement for NLP/NSP
Thank you in advance, D.
More information about the SciPy-user