27 #include "gsl/gsl_linalg.h"
28 #include "gsl/gsl_blas.h"
76 double fitting_error_sq;
79 std::string get_filePath(){
return filePath;}
81 int get_n_modes(){
return n_modes;}
86 int load_recmat_LBT(std::string fname);
96 int calc_sumvar(
float *sumvar,
int m0 = 2,
int m1 = -1,
bool fiterr=
true);
102 #endif //__recmat_h__
std::string fileName
file name of the reconstructor matrix
int gpu_inited
Flag for whether the gpu globals are initialized.
int n_slopes
The number of slopes, and the columns in the reconstructor matrix.
int rec_tech
Which reconstructor technique to use, either REC_ATLAS or REC_CPU.
std::string filePath
The full path to the reconstructor matrix.
float unit_conversion
Factor to convert variances to nanometers.
float * amp
The reconstructed amplitudes, a vector of length n_modes.
int calc_sumvar(float *sumvar, int m0=2, int m1=-1, bool fiterr=true)
Calculate the sum of the variances, e.g. the dot product of the amplitude vector. ...
int n_modes
The number of modes, and the rows in the reconstructor matrix.
int reconstruct(float *slopes)
Given a new slopes vector, reconstruct the amplitudes.
float reflection_gain
Factor to apply to reconstructed amplitudes to account for mirror reflection.
Declarations for various image utility functions.