26 #if defined (HAVE_CONFIG_H)
43 int nargin = args.
length ();
45 if (nargin < 1 || nargin > 3)
52 int ndims = dims.
ndims ();
57 if (! args(1).isempty ())
59 double dval = args(1).double_value ();
61 error (
"%s: number of points (N) cannot be NaN", fcn);
65 error (
"%s: number of points (N) must be greater than zero", fcn);
71 double dval = args(2).double_value ();
73 error (
"%s: DIM cannot be NaN", fcn);
74 else if (dval < 1 || dval > ndims)
75 error (
"%s: DIM must be a valid dimension along which to perform FFT",
101 dims(dim) = n_points;
103 if (n_points == 0 || dims.
any_zero ())
221 return do_fft (args,
"fft", 0);
250 return do_fft (args,
"ifft", 1);
OCTARRAY_API void resize(const dim_vector &dv, const T &rfv)
Size of the specified dimension.
OCTAVE_API ComplexNDArray fourier(int dim=1) const
OCTAVE_API ComplexNDArray ifourier(int dim=1) const
OCTAVE_API FloatComplexNDArray ifourier(int dim=1) const
OCTAVE_API FloatComplexNDArray fourier(int dim=1) const
OCTAVE_API FloatComplexNDArray ifourier(int dim=1) const
OCTAVE_API FloatComplexNDArray fourier(int dim=1) const
OCTAVE_API ComplexNDArray ifourier(int dim=1) const
OCTAVE_API ComplexNDArray fourier(int dim=1) const
Vector representing the dimensions (size) of an Array.
int first_non_singleton(int def=0) const
octave_idx_type ndims(void) const
Number of dimensions.
bool any_zero(void) const
static const idx_vector colon
octave_idx_type length(void) const
octave_value index_op(const octave_value_list &idx, bool resize_ok=false)
ComplexNDArray complex_array_value(bool frc_str_conv=false) const
NDArray array_value(bool frc_str_conv=false) const
bool is_single_type(void) const
FloatComplexNDArray float_complex_array_value(bool frc_str_conv=false) const
FloatNDArray float_array_value(bool frc_str_conv=false) const
bool iscomplex(void) const
dim_vector dims(void) const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
OCTINTERP_API void print_usage(void)
#define DEFUN(name, args_name, nargout_name, doc)
Macro to define a builtin function.
void error(const char *fmt,...)
void err_wrong_type_arg(const char *name, const char *s)
static octave_value do_fft(const octave_value_list &args, const char *fcn, int type)
octave::idx_vector idx_vector
octave_idx_type nint_big(double x)
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))