Eigen values in 2D.
More...
#include <JEigenValues2D.hh>
Eigen values in 2D.
Definition at line 24 of file JEigenValues2D.hh.
template<class T >
JGEOMETRY2D::JEigenValues2D::JEigenValues2D |
( |
T |
__begin, |
|
|
T |
__end |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
__begin | begin of data |
__end | end of data |
Definition at line 35 of file JEigenValues2D.hh.
46 for (
int i = 0; i != 2; ++i) {
47 for (
int j = 0;
j != 2; ++
j) {
52 for (
T i = __begin; i != __end; ++i) {
54 const double dx = center.getX() - i->getX();
55 const double dy = center.getY() - i->getY();
65 const TVectorD V = TMatrixDSymEigen(
A).GetEigenValues();
67 N = V.GetNoElements();
JVector2D()
Default constructor.
do set_variable OUTPUT_DIRECTORY $WORKDIR T
source $JPP_DIR setenv csh $JPP_DIR eval JShellParser o a A
int JGEOMETRY2D::JEigenValues2D::getN |
( |
| ) |
const |
|
inline |
Get number of eigen values.
- Returns
- number of eigen values
Definition at line 89 of file JEigenValues2D.hh.
int JGEOMETRY2D::JEigenValues2D::getN |
( |
double |
precision | ) |
const |
|
inline |
Get number of eigen values with minimal value.
- Parameters
-
- Returns
- number of eigen values
Definition at line 101 of file JEigenValues2D.hh.
105 if (fabs(
getX()) >= precision) ++
n;
106 if (fabs(
getY()) >= precision) ++
n;
double getY() const
Get y position.
double getX() const
Get x position.
alias put_queue eval echo n
double JGEOMETRY2D::JVector2D::getX |
( |
| ) |
const |
|
inlineinherited |
Get x position.
- Returns
- x position
Definition at line 62 of file JVector2D.hh.
double JGEOMETRY2D::JVector2D::getY |
( |
| ) |
const |
|
inlineinherited |
Get y position.
- Returns
- y position
Definition at line 73 of file JVector2D.hh.
JVector2D& JGEOMETRY2D::JVector2D::negate |
( |
| ) |
|
|
inlineinherited |
Negate vector.
- Returns
- this vector
Definition at line 84 of file JVector2D.hh.
Add vector.
- Parameters
-
- Returns
- this vector
Definition at line 99 of file JVector2D.hh.
double getY() const
Get y position.
double getX() const
Get x position.
Subtract vector.
- Parameters
-
- Returns
- this vector
Definition at line 114 of file JVector2D.hh.
double getY() const
Get y position.
double getX() const
Get x position.
JVector2D& JGEOMETRY2D::JVector2D::mul |
( |
const double |
factor | ) |
|
|
inlineinherited |
Scale vector.
- Parameters
-
factor | multiplication factor |
- Returns
- this vector
Definition at line 129 of file JVector2D.hh.
Multiply with object.
- Parameters
-
- Returns
- result object
Definition at line 273 of file JMath.hh.
Auxiliary class for arithmetic operations on objects.
JVector2D& JGEOMETRY2D::JVector2D::div |
( |
const double |
factor | ) |
|
|
inlineinherited |
Scale vector.
- Parameters
-
- Returns
- this vector
Definition at line 144 of file JVector2D.hh.
Transform.
- Parameters
-
- Returns
- this vector
Definition at line 159 of file JVector2D.hh.
do set_variable OUTPUT_DIRECTORY $WORKDIR T
bool JGEOMETRY2D::JVector2D::equals |
( |
const JVector2D & |
vector, |
|
|
const double |
precision = std::numeric_limits<double>::min() |
|
) |
| const |
|
inlineinherited |
Check equality.
- Parameters
-
vector | vector |
precision | precision |
- Returns
- true if vectors are equal; else false
Definition at line 174 of file JVector2D.hh.
177 return (fabs(
getX() - vector.
getX()) <= precision &&
178 fabs(
getY() - vector.
getY()) <= precision);
double getY() const
Get y position.
double getX() const
Get x position.
double JGEOMETRY2D::JVector2D::getLengthSquared |
( |
| ) |
const |
|
inlineinherited |
Get length squared.
- Returns
- square of length
Definition at line 187 of file JVector2D.hh.
double getY() const
Get y position.
double getX() const
Get x position.
double JGEOMETRY2D::JVector2D::getLength |
( |
| ) |
const |
|
inlineinherited |
Get length.
- Returns
- length
Definition at line 198 of file JVector2D.hh.
double getLengthSquared() const
Get length squared.
double JGEOMETRY2D::JVector2D::getDistanceSquared |
( |
const JVector2D & |
point | ) |
const |
|
inlineinherited |
Get squared of distance to point.
- Parameters
-
- Returns
- square of distance
Definition at line 210 of file JVector2D.hh.
212 return JVector2D(point).sub(*this).getLengthSquared();
JVector2D()
Default constructor.
double JGEOMETRY2D::JVector2D::getDistance |
( |
const JVector2D & |
point | ) |
const |
|
inlineinherited |
Get distance to point.
- Parameters
-
- Returns
- distance
Definition at line 222 of file JVector2D.hh.
double getDistanceSquared(const JVector2D &point) const
Get squared of distance to point.
double JGEOMETRY2D::JVector2D::getDot |
( |
const JVector2D & |
point | ) |
const |
|
inlineinherited |
Get dot product.
- Parameters
-
- Returns
- dot product
Definition at line 234 of file JVector2D.hh.
double getY() const
Get y position.
double getX() const
Get x position.
double JGEOMETRY2D::JVector2D::getPerpDot |
( |
const JVector2D & |
point | ) |
const |
|
inlineinherited |
Get perpendicular dot product.
- Parameters
-
- Returns
- perpendicular dot product
Definition at line 248 of file JVector2D.hh.
double getY() const
Get y position.
double getX() const
Get x position.
int JGEOMETRY2D::JEigenValues2D::N |
|
protected |
double JGEOMETRY2D::JVector2D::__x |
|
protectedinherited |
double JGEOMETRY2D::JVector2D::__y |
|
protectedinherited |
The documentation for this class was generated from the following file: