Modifier and Type | Method and Description |
---|---|
int |
D()
The dimension of this space.
|
double[] |
makeArrayD(double d)
Returns an array of dimension D, with each element equal to the given value.
|
int[] |
makeArrayD(int i)
Returns an array of dimension D, with each element equal to the given value.
|
IOrientation |
makeOrientation()
Constructs and returns a new Orientation appropriate to the space.
|
RotationTensor |
makeRotationTensor()
Constructs and returns a new RotationTensor appropriate to the space.
|
Tensor |
makeTensor()
Constructs and returns a new Tensor appropriate to the space.
|
IVectorMutable |
makeVector()
Constructs and returns a new Vector appropriate to the space.
|
IVectorMutable |
makeVector(double[] a) |
IVectorMutable |
makeVector(int[] k) |
IVectorMutable[] |
makeVectorArray(int n)
Instance methods that makes and returns an array of vectors having the
given number of elements.
|
double |
powerD(double a)
Returns the given value raised to the Dth power, where D is the dimension of the space.
|
int |
powerD(int a)
Returns the given value raised to the Dth power, where D is the dimension of the space.
|
double |
rootD(double a)
Returns the given value raised to the power 1/D, where D is the dimension of the space.
|
double |
sphereArea(double r)
Returns the surface "area" of the "sphere" defined in the D-dimensional space.
|
double |
sphereVolume(double r)
Returns the "volume" of the "sphere" defined in the D-dimensional space.
|
int D()
double rootD(double a)
int powerD(int a)
double powerD(double a)
IVectorMutable makeVector()
IVectorMutable makeVector(double[] a)
IVectorMutable makeVector(int[] k)
IOrientation makeOrientation()
Tensor makeTensor()
RotationTensor makeRotationTensor()
int[] makeArrayD(int i)
double[] makeArrayD(double d)
double sphereVolume(double r)
r
- the radiusdouble sphereArea(double r)
r
- the radiusIVectorMutable[] makeVectorArray(int n)
n
- number of vectors in the returned array