|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmath.FiniteField
public class FiniteField
Representação de Corpo Finito.
Constructor Summary | |
---|---|
FiniteField(int characteristic,
BasicPolynomial P)
Construtor. |
|
FiniteField(int characteristic,
int grau)
Construtor. |
Method Summary | |
---|---|
short |
coercion(int i)
Retorna a representação do inteiro i no corpo finito. |
short |
evaluate(Polynomial g,
short x)
Avalia o polinômio g com valor x. |
short |
exp(short elemento,
int grau)
Eleva o elemento ao grau indicado. |
BasicPolynomial |
getBasicPolynomial()
|
int |
getCharacteristic()
|
short |
getComplemento(short a,
short c)
Determina elemento b em: a * b = c; |
short[] |
getElements()
|
int |
getGrau()
|
int |
getIndiceElemento(short c)
Retorna o índice do termo c. |
int |
getNElements()
|
Polynomial |
getPolynomial(int termoAtivo)
Gera um polinomio com apenas um termo com coeficiente unitário. |
PolynomialRing |
getPolynomialRing()
|
java.lang.Short |
getRandomElement()
Obtém um elemento aleatório |
short |
getShortElemento(int i)
Obtém o termo de índice i |
static FiniteField |
getStandardK(int m)
Gera o Corpo Finito Padrão (K) |
java.lang.String |
getStringElemento(short c)
Obtém o elemento em forma de String |
void |
init()
Inicializa as tabelas log e exp. |
short |
mult(short a,
short b)
Multiplica dois elementos deste corpo finito. |
void |
setBasicPolynomial(BasicPolynomial pol)
|
void |
setCharacteristic(int characteristic)
|
void |
setElements()
Calcula os elementos do corpo finito. |
void |
setElements(short[] elements)
|
void |
setGrau(int dimension)
|
void |
setNElements(int elements)
|
void |
setPolynomialRing(PolynomialRing polynomialRing)
|
short[] |
standardL()
Obtem o vetor L. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FiniteField(int characteristic, BasicPolynomial P)
characteristic
- P
- public FiniteField(int characteristic, int grau)
characteristic
- grau
- Method Detail |
---|
public void init()
public short mult(short a, short b)
a
- b
-
public short exp(short elemento, int grau)
elemento
- grau
-
public short[] standardL()
public short evaluate(Polynomial g, short x)
g
- x
-
public static FiniteField getStandardK(int m)
m
-
public void setElements()
public java.lang.Short getRandomElement()
public java.lang.String getStringElemento(short c)
c
-
public short getShortElemento(int i)
i
-
public int getIndiceElemento(short c)
c
-
public short getComplemento(short a, short c)
a
- c
-
public short coercion(int i)
i
-
public Polynomial getPolynomial(int termoAtivo)
termoAtivo
-
public int getGrau()
public void setGrau(int dimension)
dimension
- the dimension to setpublic BasicPolynomial getBasicPolynomial()
public void setBasicPolynomial(BasicPolynomial pol)
pol
- the pol to setpublic int getCharacteristic()
public void setCharacteristic(int characteristic)
characteristic
- the characteristic to setpublic PolynomialRing getPolynomialRing()
public void setPolynomialRing(PolynomialRing polynomialRing)
polynomialRing
- public int getNElements()
public void setNElements(int elements)
elements
- public short[] getElements()
public void setElements(short[] elements)
elements
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |