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

add a small comment

parent d36cee41
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,7 @@ int Morton_shuffler::shuffle( ...@@ -57,6 +57,7 @@ int Morton_shuffler::shuffle(
float *a, float *a,
const char *base_fname) const char *base_fname)
{ {
// TODO: can this be done in-place?
// shuffle into z order // shuffle into z order
ptrdiff_t z, zz; ptrdiff_t z, zz;
int rid, zid; int rid, zid;
......
...@@ -238,7 +238,7 @@ int field_descriptor::transpose( ...@@ -238,7 +238,7 @@ int field_descriptor::transpose(
} }
int field_descriptor::interleave( int field_descriptor::interleave(
float *input, float *a,
int dim) int dim)
{ {
fftwf_iodim howmany_dims[2]; fftwf_iodim howmany_dims[2];
...@@ -251,9 +251,14 @@ int field_descriptor::interleave( ...@@ -251,9 +251,14 @@ int field_descriptor::interleave(
const int howmany_rank = sizeof(howmany_dims)/sizeof(howmany_dims[0]); const int howmany_rank = sizeof(howmany_dims)/sizeof(howmany_dims[0]);
fftwf_plan tmp = fftwf_plan_guru_r2r( fftwf_plan tmp = fftwf_plan_guru_r2r(
/*rank*/0, /*dims*/NULL, /*rank*/0,
howmany_rank, howmany_dims, /*dims*/NULL,
input, input, /*kind*/NULL, FFTW_ESTIMATE); howmany_rank,
howmany_dims,
a,
a,
/*kind*/NULL,
FFTW_ESTIMATE);
fftwf_execute(tmp); fftwf_execute(tmp);
fftwf_destroy_plan(tmp); fftwf_destroy_plan(tmp);
return EXIT_SUCCESS; return EXIT_SUCCESS;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment