46 int main(
int argc,
char** argv){
52 LC.
Init(
"wavelist2",rank,
"norm.int",
"norm.int",20000,
"phase.constr");
53 L.
Init(
"wavelist2",rank,
"norm.int",
"norm.int",20000);
57 cout <<
"LC.NDim()=" << LC.
NDim() <<
" L.NDim()=" << L.
NDim() << endl;
68 double xL[13]={0.52707,0.21068,-0.604365,0.17596,-0.216668,-0.0990815,-0.348459,0.208961,0,0,0,0,0};
79 double x[13]={0.52707,0.21068,0.17596,-0.216668,-0.0990815,-0.348459,0.208961,0,0,0,0,0};
84 std::cout<<
"L(xL)="<<LL<<std::endl;
85 std::cout<<
"LC(x)="<<LLC<<std::endl;
96 for(
unsigned int i=0;
i<LC.
NDim();++
i){
99 dxNumC[
i]=(LC2-LC1)/h;
105 for(
unsigned int i=0;
i<LC.
NDim();++
i){
106 if(2*fabs(dxNumC[
i]-dxAnaC[
i])/(fabs(dxNumC[i])+fabs(dxAnaC[i]))>0.0001){
108 cout <<
"ERR>>>" << endl;
110 cout<<
"dLC/d"<<i<<
"(num)="<<dxNumC[
i]<<endl;
111 cout<<
"dLC/d"<<i<<
"(ana)="<<dxAnaC[
i]<<endl;
114 if(problem)
return 12;
118 vector<complex<double> > V;
119 vector<pair<int,int> > indices;
120 vector<string> names;
122 for(
unsigned int i=0;
i<LC.
NDim();++
i){
129 cout <<
"Assume Covariance Matrix:" << endl;
132 LC.
buildCAmps(x,V,indices,names,cov,cova,
true);
133 cout <<
"Returned Covariance Matrix from TPWALikelihoodC" << endl;
137 double phasediff=std::arg(V[1])-std::arg(V[2]);
138 cout <<
"PhaseDiff= " << phasediff << endl;
139 if(phasediff!=0.3)
return 2;
146 int mnparm(
int,
string,
double,
double,
double,
double) {
147 cerr <<
"this is impossible" << endl;