Re: [Numpy-discussion] linalg.lstsq

2012-04-25 Thread Skipper Seabold
On Wed, Apr 25, 2012 at 12:13 PM, Till Stensitzki wrote: > Hello, > is there weighted version of linalg.lstsq available? > In my case, b is a (N,K) matrix, so i can't use manual scaling of x and b. > What shape are the weights in this case? I'm not that familiar with problems with an N x K b matr

[Numpy-discussion] linalg.lstsq

2012-04-25 Thread Till Stensitzki
Hello, is there weighted version of linalg.lstsq available? In my case, b is a (N,K) matrix, so i can't use manual scaling of x and b. greetings Till ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/nu

[Numpy-discussion] linalg.lstsq for complex

2006-12-13 Thread Bill Baxter
Is this code from linalg.lstsq for the complex case correct? lapack_routine = lapack_lite.zgelsd lwork = 1 rwork = zeros((lwork,), real_t) work = zeros((lwork,),t) results = lapack_routine(m, n, n_rhs, a, m, bstar, ldb, s, rcond,