"Robert Kern" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Peter Notebaert wrote:
>> I am new to Python and have to create an import library in C that uses
>> matrices.
>>
>> These matrices can be one-dimensional (vectors) or two-dimensional. If I
>> look in the ActivePython 2.4
"Jim" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>> Tuples or lists for matrix-like functionality?
>
> Use lists. Tuples are meant for small immutable sets of things that go
> together. Lists are more like arrays, and you can assign to one
> existing element if you want.
>
> On
Peter Notebaert wrote:
> I am new to Python and have to create an import library in C that uses
> matrices.
>
> These matrices can be one-dimensional (vectors) or two-dimensional. If I
> look in the ActivePython 2.4 documentation at data structures, then I see at
> least 2 posibilities to repre
> Tuples or lists for matrix-like functionality?
Use lists. Tuples are meant for small immutable sets of things that go
together. Lists are more like arrays, and you can assign to one
existing element if you want.
One exception, is a short vector is often a tuple like (x, y, z) and
you might wa