Mark Chimley on Fri, 3 May 2002 06:41:26 +0100 (BST)


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

Correct use of cgetg


I have a quick question regarding the use of cgetg. I want to use the
elliptic curve function powell. I believe the arguments for the curve
and the point need to be vectors. I have never created vectors before,
but following a read of the manual, I came up with:

E = cgetg (6, t_VEC);
E [1] = gzero;
E [2] = gzero;
E [3] = A;
etc.

Since E will not need to be modified, I assumed it would be OK to have
the components of E point to other GENs. The trouble is, my compiler is
complaining about assigning a pointer to an integer. Is this the usual
problem of recurrence in GENs that can actually be ignored, or do I need
to do something else?

Mark.
 --------------------------
Mark Chimley,
Department Of Mathematics,
University Of Bristol
--------------------------