Mikael Johansson on Thu, 04 Mar 2004 10:34:17 +0100

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Matrix initialization in Library mode

So, once I've allocated my matrix, say

    GEN dell=cgetg(first_size+1,t_MAT);
    for(long j=1; j<=first_size; j++) {

how do I actually fiddle with the elements? Upon trying to


all I receive is a compile error:
homology.c:220: invalid types `long int[int]' for array subscript

Mikael Johansson         |  To see the world in a grain of sand
mik@math.su.se           |   And heaven in a wild flower
                         |  To hold infinity in the palm of your hand
                         |   And eternity for an hour