Read-only forum archive

counting operations in the coefficient field

counting operations in the coefficient field

ryutaroh · Fri Feb 03, 2012 10:50 am

Hello all,

I have implemented a decoding algorithm for a class of algebraic
codes as arxiv.org/abs/1201.6248.
I used a finite field as the coefficient field of the basering,
and I want to count the numbers of additions, subtractions,
multiplications, and divisions in the finite field.

Is there any convenient way to count those operations in
a finite coefficient field during execution of a Singular script?
Or do I have to modify the source code (maybe kernel/ffields.cc)
of Singular to count them?

Thanks in advance,
Ryutaroh

Re: counting operations in the coefficient field

hannes · Mon Feb 06, 2012 8:26 pm

You need to modifiy the sources: kernel/modulop.* for
computations in Z/p, kernel/ffields.* for computations in
GF(p^n)

Re: counting operations in the coefficient field

ryutaroh · Wed Feb 08, 2012 2:30 am

Thank you very much for the information.

I will modify my own Singular script so that it can count the
number of operations in the coefficient field. This should be
easier for me.

Ryutaroh