A Survey of Gaussian Convolution Algorithms
Macros | Typedefs
num.h File Reference

num typedef More...

Detailed Description

num typedef

Author
Pascal Getreuer getre.nosp@m.uer@.nosp@m.cmla..nosp@m.ens-.nosp@m.cacha.nosp@m.n.fr

Copyright (c) 2012-2013, Pascal Getreuer All rights reserved.

This program is free software: you can redistribute it and/or modify it under, at your option, the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version, or the terms of the simplified BSD license.

You should have received a copy of these licenses along this program. If not, see http://www.gnu.org/licenses/ and http://www.opensource.org/licenses/bsd-license.html.

Definition in file num.h.

Go to the source code of this file.

Macros

#define _FFTW_CONCAT(A, B)   A ## B
 Token-pasting macro.
 
#define FFT(S)   _FFTW_CONCAT(fftw_,S)
 
#define IMAGEIO_NUM   IMAGEIO_DOUBLE
 

Typedefs

typedef double num
 

Macro Definition Documentation

#define FFT (   S)    _FFTW_CONCAT(fftw_,S)

For use with the FFTW libary, the macro FFT(functionname) is defined such that it expands to fftwf_functionname if num is single, or fftw_functionname if num is double.

Definition at line 45 of file num.h.

#define IMAGEIO_NUM   IMAGEIO_DOUBLE

For use with imageio.c, define IMAGEIO_NUM to be either IMAGEIO_SINGLE or IMAGEIO_DOUBLE, depending on whether NUM_SINGLE is defined.

Definition at line 55 of file num.h.

Typedef Documentation

num

We define a typedef "num" for the numeric datatype to use for computation. If the preprocessing symbol NUM_SINGLE is defined, then num is defined as a float (i.e., single precision). Otherwise, num is a double.

Definition at line 30 of file num.h.