I have made some tests. Now when I try to create a BCH code with
n=262128 and k=261960, with a generator polyonomial of grade 168 I
receive:

error: primitive polynomial (0) of Galois Field must be irreducible
error: unable to initialize Galois Field


How can I interprete these errors?I'm giving to the function a
generator polynomial not a primitive polynomial...

i.e. 

coded = bchenco(src,n,k,my_generator)

where n,k and my_generator are defined like I said before.

Thanks

Marco 

Il giorno Sat, 29 Nov 2008 22:54:37 +0100
[EMAIL PROTECTED] ha scritto:

> On Sat, Nov 29, 2008 at 10:45:55PM +0100, Marco Maso wrote:
> > So you are telling me that my problem can't be solved. I confirm
> > that Matlab has this limitation too.
> 
> Well in Matlab I'd say that yes the problem is unsolvable. However
> for Octave, you have the source.. Change the lines
> 
> galoisfield.h:#define __OCTAVE_GALOIS_MAX_M  16
> galoisfield.h:#define __OCTAVE_GALOIS_MAX_M_AS_STRING  "16"
> 
> to the maximum value you want and then recompile the galois field
> code.. 
> > And last question: what's the meaning of creating primitive
> > polyonomials of grade <= 22 (the limitation of primpoly) if I can't
> > use a primitive polynomial of grade > 16 for a galois field limit
> > hard coded?
> 
> Good point, don't know ... Because I could probably... This code was 
> written 4 or 5 years ago now.
> 
> D.


-- 
Per favore non mandatemi allegati in Word o PowerPoint.
Si veda http://www.gnu.org/philosophy/no-word-attachments.html

Attachment: signature.asc
Description: PGP signature

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to