Bill Allombert on Mon, 11 May 2020 18:09:13 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Length of a vector |
On Mon, May 11, 2020 at 04:38:05PM +0100, Tiago Mendes wrote: > Hi, > > I have the following vector , GEN vec = mkvecn(0). I will add numbers > to this vector and in the end i need to know the size of this vector. > > Is there a function like the len function in python that returns the length of the vector ? Yes, in C, you can use lg(vec)-1 Cheers, Bill.