Commit f9d0bcc8 authored by fgoth's avatar fgoth
Browse files

print out covariance matrices for real and imaginary part.

parent f4d07e2a
......@@ -499,7 +499,8 @@ static inline void writeVectorFunctiontoFile(Cont& container, unsigned int len,
{
std::ofstream fileRe(nameRe.c_str());
std::ofstream fileIm(nameIm.c_str());
std::ofstream covfile((nameRe+"Cov").c_str());
std::ofstream covfileRe((nameRe+"Cov").c_str());
std::ofstream covfileIm((nameIm+"Cov").c_str());
//the template parameter Cont is usually a filevector
typedef typename Cont::value_type::value_type::value_type ScalarType;
std::ofstream xdep[5];
......@@ -540,8 +541,12 @@ static inline void writeVectorFunctiontoFile(Cont& container, unsigned int len,
for(uint k = 0; k < slices; ++k)
{
for(uint j = 0; j < slices; ++j)
covfile<<real(edp.getCov()[k*slices + j])<<" ";
covfile<<std::endl;
{
covfileRe<<real(edp.getCov()[k*slices + j])<<" ";
covfileIm<<imag(edp.getCov()[k*slices + j])<<" ";
}
covfileRe<<std::endl;
covfileIm<<std::endl;
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment