1 #ifndef __JEIGENVALUES3D__
2 #define __JEIGENVALUES3D__
6 #include "TMatrixDSymEigen.h"
16 namespace JGEOMETRY3D {}
17 namespace JPP {
using namespace JGEOMETRY3D; }
19 namespace JGEOMETRY3D {
46 for (
int i = 0; i != 3; ++i) {
47 for (
int j = 0; j != 3; ++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();
56 const double dz = center.
getZ() - i->getZ();
72 const TVectorD V = TMatrixDSymEigen(A).GetEigenValues();
74 N = V.GetNoElements();
111 int getN(
double precision)
const
115 if (fabs(
getX()) >= precision) ++n;
116 if (fabs(
getY()) >= precision) ++n;
117 if (fabs(
getZ()) >= precision) ++n;
int getN(double precision) const
Get number of eigen values with minimal value.
int getN() const
Get number of eigen values.
Data structure for vector in three dimensions.
double getY() const
Get y position.
JEigenValues3D(T __begin, T __end)
Constructor.
double getX() const
Get x position.
double getZ() const
Get z position.