Commit be8399d0 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

uhuuuu

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 1151
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent aa93a6e5
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: hack_blitztogrepg.h,v 1.1 2002-11-29 18:41:16 forbrig Exp $
* $Id: hack_blitztogrepg.h,v 1.2 2002-12-02 21:54:49 forbrig Exp $
* \author Thomas Forbriger
* \date 29/11/2002
*
......@@ -23,8 +23,9 @@
#define TF_HACK_BLITZTOGREPG_H_VERSION \
"TF_HACK_BLITZTOGREPG_H V1.0 "
#define TF_HACK_BLITZTOGREPG_H_CVSID \
"$Id: hack_blitztogrepg.h,v 1.1 2002-11-29 18:41:16 forbrig Exp $"
"$Id: hack_blitztogrepg.h,v 1.2 2002-12-02 21:54:49 forbrig Exp $"
#include<complex>
#include<blitz/array.h>
namespace tfxx {
......@@ -52,6 +53,23 @@ void write_grepg_f(const blitz::Array<float, 2>& array,
const char* filename,
const double& dx=1., const double& dy=1.);
/*! \brief create grepg file from 2D array of any type
*
* \param array 2D float blitz array
* \param filename name of file to write to
* \param dx x-sampling to simulate
* \param dy y-sampling to simulate
*/
template<class T>
void write_grepg_f(const blitz::Array<T, 2>& array,
const char* filename,
const double& dx=1., const double& dy=1.)
{
blitz::Array<std::complex<float>, 2>
carray(blitz::cast<std::complex<float> >(array));
write_grepg_c(carray, filename, dx, dy);
}
} // namespace hacks
} // namespace tfxx
......
Markdown is supported
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