Skip to content
Snippets Groups Projects
Commit 9b3e96a3 authored by Chichi Lalescu's avatar Chichi Lalescu
Browse files

start shift to template

parent 6113ef5c
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,7 @@
extern int myrank, nprocs;
template <class rnumber>
class field_descriptor
{
public:
......@@ -66,29 +67,29 @@ class field_descriptor
* don't forget to delete the result once you're done with it.
* the transposed descriptor is useful for io operations.
* */
field_descriptor *get_transpose();
field_descriptor<rnumber> *get_transpose();
/* we don't actually need the transposed descriptor to perform
* the transpose operation: we only need the in/out fields.
* */
int transpose(
float *input,
float *output);
rnumber *input,
rnumber *output);
int transpose(
fftwf_complex *input,
fftwf_complex *output = NULL);
rnumber *input[2],
rnumber *output[2] = NULL);
int interleave(
float *input,
rnumber *input,
int dim);
int interleave(
fftwf_complex *input,
rnumber *input[2],
int dim);
int switch_endianness(
float *a);
rnumber *a);
int switch_endianness(
fftwf_complex *a);
rnumber *a[2]);
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment