|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--HFE.Transform2
Transform2 provides a affine transformation (i.e. S,T in terms of HFE),
i.e. computes y = M*x + m where M and m are the affine transformation
and x/y are input/output.
All elements in the underlaying matrix and vector are taken from
Field2
.
Field Summary | |
private LUDecomposition2 |
lu
holds the LU decomposition of matrix M for the reverse affine transformation. |
int[] |
m
holds the vector m for the affine transformation. |
Matrix2 |
M
holds the bijective matrix M for the affine transformation. |
private static int |
rowCol
the number of rows and columns, which is taken from the field extension. |
Constructor Summary | |
Transform2()
Generates a affine transformation which is the identity, i.e. |
|
Transform2(java.util.Random rnd)
Generates a affine transformation using a PRNG |
Method Summary | |
Poly2MultiLinear[] |
getTransform()
returns the transformation in terms of polynomials |
static void |
main(java.lang.String[] args)
Calls the testIt() method |
static void |
testIt()
Tests the functionality of the class. |
void |
transform(int[] vec,
int[] res)
applies the transformation to a given vector, i.e. |
Poly2MultiSquare[] |
transform(Poly2MultiSquare[] in)
Applies the transformation to a given vector of polynomials, i.e. |
void |
transform(Poly2MultiSquare[] res,
SquarePolyVec in)
Applies the transformation to a given vector of polynomials, i.e. |
Poly2MultiSquare[] |
transform(SquarePolyVec in)
Applies the transformation to a given vector of polynomials, i.e. |
(package private) void |
untransform(int[] vec,
int[] res)
reverts the transformation to a given vector, i.e. |
void |
writeString()
Writes the current transformation to stdout |
Methods inherited from class java.lang.Object |
|
Field Detail |
public Matrix2 M
private LUDecomposition2 lu
public int[] m
private static int rowCol
Constructor Detail |
public Transform2()
public Transform2(java.util.Random rnd)
rnd
- Random number generator for generating the transformationMethod Detail |
public void transform(int[] vec, int[] res)
vec
- vector which should be transformed using thisres
- vector under this transformationpublic Poly2MultiSquare[] transform(Poly2MultiSquare[] in)
in
- vector which should be transformed using thispublic Poly2MultiSquare[] transform(SquarePolyVec in)
in
- vector which should be transformed using thispublic void transform(Poly2MultiSquare[] res, SquarePolyVec in)
res
- resultin
- vector which should be transformed using thisvoid untransform(int[] vec, int[] res)
vec
- vector which should be untransformed using this - is changed in this methodres
- vector under this transformationpublic Poly2MultiLinear[] getTransform()
public void writeString()
public static void testIt()
public static void main(java.lang.String[] args)
testIt()
method
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |