-
Notifications
You must be signed in to change notification settings - Fork 3
/
transpose-fftw-threads.h
37 lines (30 loc) · 1.29 KB
/
transpose-fftw-threads.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* Transpose functions.
*
* @author Connor Imes <[email protected]>
* @date 2019-08-20
*/
#ifndef TRANSPOSE_FFTW_THREADS_H
#define TRANSPOSE_FFTW_THREADS_H
#include <complex.h>
#include <stdlib.h>
#include <fftw3.h>
void transpose_fftw_thrrow(const fftw_complex* restrict A,
fftw_complex* restrict B,
size_t A_rows, size_t A_cols,
size_t num_thr);
void transpose_fftw_thrcol(const fftw_complex* restrict A,
fftw_complex* restrict B,
size_t A_rows, size_t A_cols,
size_t num_thr);
void transpose_fftw_thrrow_blocked(const fftw_complex* restrict A,
fftw_complex* restrict B,
size_t A_rows, size_t A_cols,
size_t num_thr,
size_t blk_rows, size_t blk_cols);
void transpose_fftw_thrcol_blocked(const fftw_complex* restrict A,
fftw_complex* restrict B,
size_t A_rows, size_t A_cols,
size_t num_thr,
size_t blk_rows, size_t blk_cols);
#endif /* TRANSPOSE_FFTW_THREADS_H */