Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #20475 > unrolled thread

Numerical Linear Algebra in arbitrary precision

Started byKen <ken.allen@sbcglobal.net>
First post2012-02-15 13:02 -0800
Last post2012-02-27 10:24 +0000
Articles 4 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  Numerical Linear Algebra in arbitrary precision Ken <ken.allen@sbcglobal.net> - 2012-02-15 13:02 -0800
    Re: Numerical Linear Algebra in arbitrary precision Tim Roberts <timr@probo.com> - 2012-02-16 22:09 -0800
      Re: Numerical Linear Algebra in arbitrary precision Robert Kern <robert.kern@gmail.com> - 2012-02-17 10:26 +0000
    Re: Numerical Linear Algebra in arbitrary precision Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-02-27 10:24 +0000

#20475 — Numerical Linear Algebra in arbitrary precision

FromKen <ken.allen@sbcglobal.net>
Date2012-02-15 13:02 -0800
SubjectNumerical Linear Algebra in arbitrary precision
Message-ID<e6ca88fb-3fc7-47b6-b2f5-3c7ee8b65eec@tc8g2000pbc.googlegroups.com>
Brand new Python user and a bit overwhelmed with the variety of
packages available.  Any recommendation for performing numerical
linear algebra (specifically least squares and generalized least
squares using QR or SVD) in arbitrary precision?  I've been looking at
mpmath but can't seem to find much info on built in functions except
for LU decomposition/solve.

Appreciate any comments.

Ken

[toc] | [next] | [standalone]


#20538

FromTim Roberts <timr@probo.com>
Date2012-02-16 22:09 -0800
Message-ID<glrrj75q2skidjg4hvc20jej90shup824e@4ax.com>
In reply to#20475
Ken <ken.allen@sbcglobal.net> wrote:
>
>Brand new Python user and a bit overwhelmed with the variety of
>packages available.  Any recommendation for performing numerical
>linear algebra (specifically least squares and generalized least
>squares using QR or SVD) in arbitrary precision?  I've been looking at
>mpmath but can't seem to find much info on built in functions except
>for LU decomposition/solve.

It is been my experience that numpy is the best place to start with
requests like this, although I don't know whether it will actually solve
your specific tasks:

http://docs.scipy.org/doc/numpy/reference/routines.linalg.html
-- 
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

[toc] | [prev] | [next] | [standalone]


#20547

FromRobert Kern <robert.kern@gmail.com>
Date2012-02-17 10:26 +0000
Message-ID<mailman.5915.1329474426.27778.python-list@python.org>
In reply to#20538
On 2/17/12 6:09 AM, Tim Roberts wrote:
> Ken<ken.allen@sbcglobal.net>  wrote:
>>
>> Brand new Python user and a bit overwhelmed with the variety of
>> packages available.  Any recommendation for performing numerical
>> linear algebra (specifically least squares and generalized least
>> squares using QR or SVD) in arbitrary precision?  I've been looking at
>> mpmath but can't seem to find much info on built in functions except
>> for LU decomposition/solve.
>
> It is been my experience that numpy is the best place to start with
> requests like this, although I don't know whether it will actually solve
> your specific tasks:
>
> http://docs.scipy.org/doc/numpy/reference/routines.linalg.html

This will not do arbitrary-precision, though. We use the double- and 
single-precision routines from LAPACK.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

[toc] | [prev] | [next] | [standalone]


#20930

FromAlbert van der Horst <albert@spenarnc.xs4all.nl>
Date2012-02-27 10:24 +0000
Message-ID<m01rlh.mng@spenarnc.xs4all.nl>
In reply to#20475
In article <e6ca88fb-3fc7-47b6-b2f5-3c7ee8b65eec@tc8g2000pbc.googlegroups.com>,
Ken  <ken.allen@sbcglobal.net> wrote:
>Brand new Python user and a bit overwhelmed with the variety of
>packages available.  Any recommendation for performing numerical
>linear algebra (specifically least squares and generalized least
>squares using QR or SVD) in arbitrary precision?  I've been looking at
>mpmath but can't seem to find much info on built in functions except
>for LU decomposition/solve.

Arbitrary precision? As in automatically increasing precision to
stay exact? You will find this impractical as the number of decimals
will explode, or you will find it not at all.

If you mean that you want to be able to select something with larger
precision than single or double floats, numpy is the starting point.

>
>Appreciate any comments.
>
>Ken

Groetjes Albert

--
-- 
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- being exponential -- ultimately falters.
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web