[PYTHON MATRIX-SIG] Modules and Naming issues

Guido van Rossum guido@CNRI.Reston.Va.US
Fri, 06 Sep 1996 15:36:06 -0400


> My question for everyone is what should the reccommended usage of these
> functions be?
> 
> I've finally gotten used to typing things like:
> 
> >>> Numeric.array([1,2,3], Numeric.Float32)
> 
> I can't imagine ever getting used to typing:
> 
> >>> Numeric.LinearAlgebra.inverse(a)
> 
> Is there something I'm missing here? 

The package system allows you to do a few things here:

>>> from Numeric import LinearAlgebra
>>> LinearAlgebra.inverse(a)

>>> from Numeric.LinearAlgebra import *
>>> inverse(a)

You could also abbrev LinearAlgebra to LA.

--Guido van Rossum (home page: http://www.python.org/~guido/)

=================
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================