TF++, Miscellaneous classes and modules in C++:

◆ write_grepg()

template<class T >
void tfxx::hacks::write_grepg ( const blitz::Array< T, 2 > &  array,
const char *  filename,
const double &  dx = 1.,
const double &  dy = 1. 
)

create grepg file from 2D array of any type

Parameters
any2D blitz array
filenamename of file to write to
dxx-sampling to simulate
dyy-sampling to simulate

Definition at line 78 of file hack_blitztogrepg.h.

References write_grepg_c().

81 {
82  blitz::Array<std::complex<float>, 2>
83  carray(array.lbound(), array.shape(), blitz::fortranArray);
84  carray=blitz::cast<std::complex<float> >(array);
85  write_grepg_c(carray, filename, dx, dy);
86 }
void write_grepg_c(const blitz::Array< std::complex< float >, 2 > &array, const char *filename, const double &dx=1., const double &dy=1.)
create grepg file from complex array
Here is the call graph for this function: