|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dolben.poly.P3
public class P3
Permutations of components and combinations of signs of components for 3D vectors: { even | odd | all } { Permutations | Pluses }.
For completeness there ought to be *Permutations( double[][] ), but they weren't used and so are left out. See evenPluses( double[][] ), e.g., for a template if need be.
Field Summary | |
---|---|
static double |
PHI
|
Constructor Summary | |
---|---|
P3()
|
Method Summary | |
---|---|
static double[][] |
allPermutations(double[] v)
Generates all the permutations of the components of a 3D vector. |
static double[][] |
allPluses(double[] v)
Generates all the combinations of signs for the components of a 3D vector. |
static double[][] |
allPluses(double[][] a)
Generates all the combinations of an even number of plus signs for the components of each 3D vector in an array where no component is zero. |
static double[][] |
concatenate(double[][] a,
double[][] b)
Concatenates two arrays of vectors. |
static double[][] |
evenPermutations(double[] v)
Generates all the even permutations of the components of a 3D vector. |
static double[][] |
evenPluses(double[] v)
Generates all the combinations of an even number of plus signs for the components of a 3D vector where no component is zero. |
static double[][] |
evenPluses(double[][] a)
Generates all the combinations of an even number of plus signs for the components of each 3D vector in an array where no component is zero. |
static double[][] |
oddPermutations(double[] v)
Generates all the odd permutations of the components of a 3D vector. |
static double[][] |
oddPluses(double[] v)
Generates all the combinations of an odd number of plus signs for the components of a 3D vector where no component is zero. |
static double[][] |
oddPluses(double[][] a)
Generates all the combinations of an odd number of plus signs for the components of each 3D vector in an array where no component is zero. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double PHI
Constructor Detail |
---|
public P3()
Method Detail |
---|
public static double[][] evenPermutations(double[] v)
v
- the vector
public static double[][] oddPermutations(double[] v)
v
- the vector
public static double[][] evenPluses(double[] v)
v
- the vector
public static double[][] oddPluses(double[] v)
v
- the vector
public static double[][] allPluses(double[] v)
v
- the vector
public static double[][] allPermutations(double[] v)
v
- the vector
public static double[][] evenPluses(double[][] a)
a
- array of 3D vectors
public static double[][] oddPluses(double[][] a)
a
- array of 3D vectors
public static double[][] allPluses(double[][] a)
a
- array of 3D vectors
public static double[][] concatenate(double[][] a, double[][] b)
a
- one array of vectorsb
- another array of vectors
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |