[Numpy-discussion] matrix multiplication A x, x has some zeros

dmitrey dmitrey.kroshko at scipy.org
Fri Dec 14 04:44:04 EST 2007


I guess it doesn't matter, but typical n are 1...1000.
However, I need to call the operation hundreds or thousands times (while 
running NLP solver ralg, so 4..5 * nIter times).
Number of zeros can be 0...n-1

Charles R Harris wrote:
> How big is n?
>
> On Dec 14, 2007 1:24 AM, dmitrey <dmitrey.kroshko at scipy.org 
> <mailto:dmitrey.kroshko at scipy.org>> wrote:
>
>     Hi all,
>     I have to get Ax, A  is n x n matrix, x is vector of length n.
>     Some coords of x are zeros, so I want to economy time/cputime somehow
>     w/o connecting sparse module from scipy.
>     What's the easiest way to do so?
>
>     Thx, D.
>     _______________________________________________
>     Numpy-discussion mailing list
>     Numpy-discussion at scipy.org <mailto:Numpy-discussion at scipy.org>
>     http://projects.scipy.org/mailman/listinfo/numpy-discussion
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>   




More information about the NumPy-Discussion mailing list