GLAMERDOC++
Gravitational Lensing Code Library
Loading...
Searching...
No Matches
fitlens.h
1/*
2 * fitlens.h
3 *
4 * Created on: Jan 13, 2011
5 * Author: RB Metcalf
6 */
7
8#ifndef FITLENS_H_
9#define FITLENS_H_
10
11#include <mutex>
12#include <analytic_lens.h>
13
14
15void find_lens(int Nimages,int Nsources,int *pairing,double **xob,double *xg,double beta
16 ,int N,int *degen,double *mod,double **v,double **dx);
17double modfind(double theta);
18
19void deflection_total(double *ximage,double *angle,int fulllens,double sdeg,double *ang_lens
20 ,int mag,double *Amag);
21double deflection_model(double beta,double *mod,double *x,double *y,double *mag,int N
22 ,int Nlenses,double Re2,double *x2);
23int find_image_number(double *yo,double *x_center,double *mod,int Nmod,int Nlenses,double Re2,double *x2);
24double finiteMag(double radsource,double *xo,double *mod,int Nmod,int Nlenses,double Re2,double *x2t);
25
26double minEllip(double *q);
27double minaxis(double thetaX);
28void RotateModel(double thetaX,double *mod,int N,int Nsources);
29double regularize(int Nmax,int Nmin,int N,int Nsources,int degen,double *mod
30 ,double **v,double *modo);
31
32#endif