26#if defined (HAVE_CONFIG_H)
45 int nargin = args.
length ();
47 if (nargin < 1 || nargin > 2)
54 for (
int i = 0; i < dims.
ndims (); i++)
60 Matrix val = args(1).xmatrix_value (
"%s: SIZE must be a vector of length dim", fcn);
66 error (
"%s: SIZE must be a vector of length dim", fcn);
68 for (
int i = 0; i < dims.
ndims (); i++)
70 if (math::isnan (val(i, 0)))
71 error (
"%s: SIZE has invalid NaN entries", fcn);
72 else if (math::nint_big (val(i, 0)) < 0)
73 error (
"%s: all dimensions in SIZE must be greater than zero", fcn);
75 dims(i) = math::nint_big(val(i, 0));
143 return do_fftn (args,
"fftn", 0);
172 return do_fftn (args,
"ifftn", 1);
185OCTAVE_END_NAMESPACE(octave)
octave_idx_type rows() const
void resize(const dim_vector &dv, const T &rfv)
Size of the specified dimension.
octave_idx_type columns() const
ComplexNDArray ifourierNd() const
ComplexNDArray fourierNd() const
FloatComplexNDArray ifourierNd() const
FloatComplexNDArray fourierNd() const
FloatComplexNDArray fourierNd() const
FloatComplexNDArray ifourierNd() const
ComplexNDArray fourierNd() const
ComplexNDArray ifourierNd() const
Vector representing the dimensions (size) of an Array.
octave_idx_type ndims() const
Number of dimensions.
octave_idx_type length() const
ComplexNDArray complex_array_value(bool frc_str_conv=false) const
bool is_single_type() const
NDArray array_value(bool frc_str_conv=false) const
FloatComplexNDArray float_complex_array_value(bool frc_str_conv=false) const
FloatNDArray float_array_value(bool frc_str_conv=false) const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
#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)