# Python linear algebra module -- requesting comments on interface

Volker Grabsch volker_grabsch at v.notjusthosting.com
Fri Sep 9 14:40:49 CEST 2005

C. Barnes wrote:
> Hi, I'm in the process of writing a Python linear
> algebra module.
>
> The current targeted interface is:
>   http://oregonstate.edu/~barnesc/temp/linalg/

Is this going to become free software. If yes, what license
will you use?

So my suggestions:

In cases like these ones:

random_matrix(m, n=-1)
zero_matrix(m, n=-1)

.. I think it's better to set the default value to "None"

random_matrix(m, n=None)
zero_matrix(m, n=None)

IMHO, this is more intuitive and more "pythonic".

I also suggest to make the "random function" choosable:

random_matrix(m, n=None, randfunc=random.random)
random_vector(n, randfunc=random.random)

This way it's more easy for those who want another range
of numbers, or want another kind of distribution of the
random numbers.

which is broken:

See _overview_ for a quick start.

Greets,

Volker

--
Volker Grabsch
---<<(())>>---
\frac{\left|\vartheta_0\times\{\ell,\kappa\in\Re\}\right|}{\sqrt
[G]{-\Gamma(\alpha)\cdot\mathcal{B}^{\left[\oint\!c_\hbar\right]}}}