Eigs.H File Reference

Handle Eigenvalue translation to-from matrix, polar, and xyz coords. More...

#include <gsl/gsl_eigen.h>
#include <vector>

Go to the source code of this file.

Classes

class  S_Engine
 Engine to pass in s values and retrieve eigen parameters in different formats. More...

Enumerations

enum  EigsEnum { KMAX = 1, KINT = 2, KMIN = 3 }

Functions

size_t GetIndex (const EigsEnum which, const gsl_vector *v)
 Used to pick out the index for Vmax/Tmax, Vint/Tint, Vmin/Tmin. Meant just to be a helper.
bool GetEig (const EigsEnum which, const gsl_matrix *eigenvecs, const gsl_vector *eigenvals, float vec[3], float &val)
 Pick out a particular eigen vector/value.
bool GetEigs (const gsl_matrix *eigenvec, const gsl_vector *eigenval, float newEigs[9])
 Fill a lisa style eigen vector array. see s_eigs.


Detailed Description

Handle Eigenvalue translation to-from matrix, polar, and xyz coords.


Enumeration Type Documentation

enum EigsEnum
 

Use K when you don't know if they are talking about value or vector. Otherwise use Vmax, Vint, Vmin for eigen VECTORS or Tmax, Tint, Tmin for tau/eigen VALUES

Enumerator:
KMAX 
KINT 
KMIN 


Function Documentation

bool GetEig const EigsEnum  which,
const gsl_matrix *  eigenvecs,
const gsl_vector *  eigenvals,
float  vec[3],
float &  val
 

Pick out a particular eigen vector/value.

Parameters:
which KMIN, KINT, KMAX
eigenvecs Precomputed eigen vectors. Use gsl_eigensymmv
eigenvals Precomputed eigen values. Use gsl_eigensymmv
vec Return array for the eigen vector
val Return the eigen value. Should be less than 1!!! (t1+t2+t3 == 1.0)
Returns:
should someday return false if got a bad param
The eigen parameters are unsorted when computed, so the min could be first, second, or third. Use this to grab the data out of the gsl data structures for the eigen parameters you want.

bool GetEigs const gsl_matrix *  eigenvec,
const gsl_vector *  eigenval,
float  newEigs[9]
 

Fill a lisa style eigen vector array. see s_eigs.

Parameters:
eigenvec Unsorted eigen vector. They are in the order of the eigen values
eigenval Unsorted eigen values
newEigs Store the values here are Tmin, DECmin, INCmin, Tint, DECint, INCint, Tmax, DECmax, INCmax
Returns:
false if there was some sort of problem. true on success
Has to sort through the eigenvals to figure out the order of min, int, and max

size_t GetIndex const EigsEnum  which,
const gsl_vector *  v
 

Used to pick out the index for Vmax/Tmax, Vint/Tint, Vmin/Tmin. Meant just to be a helper.


Generated on Thu Mar 2 17:55:25 2006 for density by  doxygen 1.4.6