public class LatticePointsInEllipsoid extends Object implements Serializable, Cloneable
B
, a center vector C
and, a radius r
and
a deviation vector D
. Given this data this class determines all lattice points
N∈Zg
that lay inside the specified ellipsoids,
e.g. the lattice points fulfill:
(N-c)t B (N-c) < r2 with |ci-Ci| < di
,
getLatticePoints()
).Modifier and Type | Field and Description |
---|---|
protected de.jtem.blas.RealVector[] |
abs_t |
protected de.jtem.blas.RealMatrix |
B |
protected de.jtem.blas.RealVector[] |
C |
protected int |
dim |
protected de.jtem.blas.RealMatrix |
latticePoints |
protected de.jtem.blas.RealVector |
N |
protected int |
numOfLatticePoints |
protected double |
r |
protected de.jtem.blas.RealVector[] |
t |
protected de.jtem.blas.RealMatrix[] |
T |
protected boolean |
uptodate |
Constructor and Description |
---|
LatticePointsInEllipsoid(de.jtem.blas.RealMatrix B)
Creates object that delivers the lattice points inside ellipsoid
given by the matrix
B . |
LatticePointsInEllipsoid(de.jtem.blas.RealMatrix B,
double r)
Creates object that delivers the lattice points inside ellipsoid
given by the matrix
B . |
LatticePointsInEllipsoid(de.jtem.blas.RealMatrix B,
de.jtem.blas.RealVector C,
double r)
Creates object that delivers the lattice points inside ellipsoid
given by the matrix
B . |
Modifier and Type | Method and Description |
---|---|
protected void |
addLatticePoint(de.jtem.blas.RealVector y) |
de.jtem.blas.RealMatrix |
getB()
Returns matrix specifying the ellipsoid.
|
de.jtem.blas.RealVector |
getCenter()
Returns center of ellipsoid.
|
de.jtem.blas.RealMatrix |
getLatticePoints()
Returns lattice points in ellipsoid.
|
int |
getNumOfLatticePoints()
Returns number of lattice points in specified ellipsoid.
|
double |
getRadius() |
static void |
main(String[] arg) |
void |
setB(de.jtem.blas.RealMatrix B)
Sets matrix specifiying the ellipsoid.
|
void |
setCenter(de.jtem.blas.RealVector c)
Sets center of ellipsoid to
c . |
void |
setRadius(double r)
Sets radius of ellipsoid.
|
protected static double |
sqr(double x) |
String |
toString()
Returns matrix containing the lattice points as string.
|
protected void |
update() |
protected final de.jtem.blas.RealMatrix latticePoints
protected int numOfLatticePoints
protected final de.jtem.blas.RealVector[] abs_t
protected final de.jtem.blas.RealMatrix B
protected final de.jtem.blas.RealVector[] C
protected final int dim
protected final de.jtem.blas.RealVector N
protected double r
protected final de.jtem.blas.RealVector[] t
protected final de.jtem.blas.RealMatrix[] T
protected boolean uptodate
public LatticePointsInEllipsoid(de.jtem.blas.RealMatrix B)
B
.
The ellipsoid is centered in zero and has radius 1.B
- symmetric and positive definite.public LatticePointsInEllipsoid(de.jtem.blas.RealMatrix B, double r)
B
.
The ellipsoid is centered in zero and has radius r
.B
- symmetric and positive definite.r
- radius of ellipsoidpublic LatticePointsInEllipsoid(de.jtem.blas.RealMatrix B, de.jtem.blas.RealVector C, double r)
B
.
The ellipsoid is centered in c
and has radius r
.B
- symmetric and positive definite.C
- center of ellipsoidr
- radius of ellipsoidpublic static void main(String[] arg)
protected void update()
protected void addLatticePoint(de.jtem.blas.RealVector y)
public final de.jtem.blas.RealMatrix getLatticePoints()
public final int getNumOfLatticePoints()
public final String toString()
toString
in class Object
getLatticePoints()
public final de.jtem.blas.RealMatrix getB()
public final de.jtem.blas.RealVector getCenter()
public final double getRadius()
public void setB(de.jtem.blas.RealMatrix B)
public final void setCenter(de.jtem.blas.RealVector c)
c
.c
- vector of length dim
public final void setRadius(double r)
r
- radius of ellipsoidprotected static double sqr(double x)