23 #if defined (HAVE_CONFIG_H) 37 #if defined (HAVE_FFTW) 38 # define FFTSRC "@sc{fftw}" 40 # define FFTSRC "@sc{fftpack}" 55 for (
int i = 0;
i <
dims.ndims ();
i++)
61 Matrix val = args(1).xmatrix_value (
"%s: SIZE must be a vector of length dim",
fcn);
63 if (
val.rows () >
val.columns ())
66 if (
val.columns () !=
dims.ndims () ||
val.rows () != 1)
67 error (
"%s: SIZE must be a vector of length dim",
fcn);
69 for (
int i = 0;
i <
dims.ndims ();
i++)
72 error (
"%s: SIZE has invalid NaN entries",
fcn);
74 error (
"%s: all dimensions in SIZE must be greater than zero",
fcn);
144 return do_fftn (args,
"fftn", 0);
147 DEFUN (ifftn, args, ,
163 return do_fftn (args,
"ifftn", 1);
ComplexNDArray fourierNd(void) const
ComplexNDArray ifourierNd(void) const
OCTINTERP_API void print_usage(void)
identity matrix If supplied two scalar respectively For allows like xample val
FloatComplexNDArray ifourierNd(void) const
#define DEFUN(name, args_name, nargout_name, doc)
Macro to define a builtin function.
void error(const char *fmt,...)
FloatNDArray float_array_value(bool frc_str_conv=false) const
static octave_value do_fftn(const octave_value_list &args, const char *fcn, int type)
FloatComplexNDArray fourierNd(void) const
bool is_single_type(void) const
dim_vector dims(void) const
void resize(const dim_vector &dv, const T &rfv)
Resizing (with fill).
ComplexNDArray ifourierNd(void) const
FloatComplexNDArray ifourierNd(void) const
the exceeded dimensions are set to if fewer subscripts than dimensions are the exceeding dimensions are merged into the final requested dimension For consider the following dims
FloatComplexNDArray float_complex_array_value(bool frc_str_conv=false) const
void err_wrong_type_arg(const char *name, const char *s)
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))
octave_idx_type nint_big(double x)
octave_idx_type length(void) const
bool iscomplex(void) const
ComplexNDArray complex_array_value(bool frc_str_conv=false) const
ComplexNDArray fourierNd(void) const
Vector representing the dimensions (size) of an Array.
FloatComplexNDArray fourierNd(void) const
NDArray array_value(bool frc_str_conv=false) const