[SciPy-user] howto dot(a, b.T), some a or b coords are zeros

dmitrey dmitrey.kroshko@scipy....
Wed Jan 2 13:28:40 CST 2008


hi all,
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 = 
(n,n))

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 
ralg solver).

Thank you in advance, D.


More information about the SciPy-user mailing list