ostore.archive.cauchy
Class InitField

java.lang.Object
  |
  +--ostore.archive.cauchy.InitField

public class InitField
extends Object

InitField initializes the finite Field Element to Exponent (FEtoExp) table and the Exponent to finite Field Element (ExptoFE) table. SMultField is the size of the multiplicative field (2^{Lfield}-1) == TableLength - 1. pCOLBIT is a pointer to the COLBIT, which is used to make sure rows and columns have distinct field elements associated with them. The BIT array is used to mask out single bits in equations: bit ExptoFE is the table that goes from the exponent to the finite field element. FEtoExp == FEtoExp is the table that goes from the finite field element to the exponent. Lfield is the log of the length of the field.

Version:
$Id: InitField.java,v 1.5 2002/05/13 22:23:06 hweather Exp $
Author:
Hakim Weatherspoon

Field Summary
static int[][] BIT
           
static int[][] COLBIT
           
static int[][] ExptoFE
           
static int[][] FEtoExp
           
static int MAXLFIELD
           
 
Constructor Summary
InitField()
           
 
Method Summary
static void generateTables(int maxLfield)
          This routine will generate tables for the input number of Lfields and output them to stdout.
static int[] getBIT(int Lfield)
          Retreve the BIT table for the input Lfield.
static int[] getCOLBIT(int Lfield)
          Retrieve the COLBIT table for the input Lfield.
static int[] getExptoFE(int Lfield)
          Retreve the ExptoFE table for the input Lfield.
static int[] getFEtoExp(int Lfield)
          Retreve the FEtoExp table for the input Lfield.
static void initField(int[] pCOLBIT, int[] BIT, int[] ExptoFE, int[] FEtoExp, int Lfield)
          initField initializes the finite Field Element to Exponent (FEtoExp) table and the Exponent to finite Field Element (ExptoFE) table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAXLFIELD

public static int MAXLFIELD

COLBIT

public static int[][] COLBIT

BIT

public static int[][] BIT

ExptoFE

public static int[][] ExptoFE

FEtoExp

public static int[][] FEtoExp
Constructor Detail

InitField

public InitField()
Method Detail

getCOLBIT

public static int[] getCOLBIT(int Lfield)
Retrieve the COLBIT table for the input Lfield.

Parameters:
Lfield - == the Lfield to retrieve a COLBIT table for.

getBIT

public static int[] getBIT(int Lfield)
Retreve the BIT table for the input Lfield.

Parameters:
Lfield - == the Lfield to retrieve a BIT table for.

getExptoFE

public static int[] getExptoFE(int Lfield)
Retreve the ExptoFE table for the input Lfield.

Parameters:
Lfield - == the Lfield to retrieve a ExptoFE table for.

getFEtoExp

public static int[] getFEtoExp(int Lfield)
Retreve the FEtoExp table for the input Lfield.

Parameters:
Lfield - == the Lfield to retrieve a FEtoExp table for.

initField

public static void initField(int[] pCOLBIT,
                             int[] BIT,
                             int[] ExptoFE,
                             int[] FEtoExp,
                             int Lfield)
initField initializes the finite Field Element to Exponent (FEtoExp) table and the Exponent to finite Field Element (ExptoFE) table. Recall SMultField = TableLength - 1 is the number of elements in the multiplicative group of the field.

Parameters:
pCOLBIT - == is a pointer to the COLBIT, which is used to make sure rows and columns have distinct field elements associated with them.
BIT - == The BIT array is used to mask out single bits in equations: bit
ExptoFE - == ExptoFE is the table that goes from the exponent to the finite field element.
FEtoExp - == FEtoExp is the table that goes from the finite field element to the exponent.
Lfield - == Lfield is the log of the length of the field..

generateTables

public static void generateTables(int maxLfield)
This routine will generate tables for the input number of Lfields and output them to stdout.

Parameters:
maxLfield - == maximum Lfield to produce fields for