summaryrefslogtreecommitdiff
path: root/gsl-1.9/fft/complex_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'gsl-1.9/fft/complex_internal.h')
-rw-r--r--gsl-1.9/fft/complex_internal.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/gsl-1.9/fft/complex_internal.h b/gsl-1.9/fft/complex_internal.h
new file mode 100644
index 0000000..1c9c366
--- /dev/null
+++ b/gsl-1.9/fft/complex_internal.h
@@ -0,0 +1,14 @@
+/* Handling of packed complex types... not meant for client consumption.
+ */
+#ifndef COMPLEX_INTERNAL_H_
+#define COMPLEX_INTERNAL_H_
+
+#define VECTOR(a,stride,i) ((a)[(stride)*(i)])
+#define REAL(a,stride,i) ((a)[2*(stride)*(i)])
+#define IMAG(a,stride,i) ((a)[2*(stride)*(i)+1])
+
+#define REAL0(a) ((a)[0])
+#define IMAG0(a) ((a)[1])
+
+
+#endif /* !COMPLEX_INTERNAL_H_ */