Re: Generalized Linear Least Squares Problems



On 31 May 2005 03:12:49 -0700, venkat <vvenkatagr@xxxxxxxxx> wrote:
> Hi,
>
> I want to solve linear least sqaure problem( min||c-Ax||2 subject to
> Bx=d ). How do I do it in python. lapack has a routine for doing this
> (DGGLSE). Can I access this from python?
>

Check out scipy, in particular the linear algebra package.

http://www.scipy.org/documentation/apidocs/scipy/scipy.linalg.html

Cheers,

Tim

> TIA,
> venkat.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
.



Relevant Pages

  • Re: is there a better way?
    ... Standard module bisect in the Python library could help, ... "Linear Time in C", more or less. ... How large must the list be before "logarithmic Python algorithm" is ... question worth exploring if one has a huge pile of data to chew on--like ...
    (comp.lang.python)
  • Re: What is different with Python ?
    ... But I will write better code if I understand how Python ... It makes a difference whether your algorithm runs in constant time, ... linear, quadratic, logarithmic or exponential time -- or something even ... exponential algorithms in something that looks like a linear or constant ...
    (comp.lang.python)
  • Re: How would you program this?
    ... being linear with only 12 ... > The first impulse is to just brute force it with nested for loops, ... In Python, this is easy with Numeric/numarray; ...
    (comp.lang.python)
  • Re: Python advocacy in scientific computation
    ... This is done because of a preference from explicit references over implied ones. ... Slicing *is* a part of the language, inserted into the grammar precisely to support the numeric/scientific community. ... Suffice it to say that Python is being used for a wide range of scientific and engineering problems to the evident satisfaction of its users. ... For the moment, however, since apparently Google isn't available where you are, a quick search for "Python LAPACK" gave ...
    (comp.lang.python)
  • Re: PyExcelerator: How does one close a file?
    ... the function writeData with different filenames fn from my main ... routine. ... It worked as expected (Python 2.4.3 on Windows XP). ...
    (comp.lang.python)