52 xelem (i) =
static_cast<unsigned char> (a(i));
55 #if defined (HAVE_FFTW)
62 if (dim > dv.
length () || dim < 0)
68 for (
int i = 0; i < dim; i++)
72 howmany = (stride == 1 ? howmany : (howmany > stride ? stride : howmany));
83 n, howmany, stride, dist);
93 if (dim > dv.
length () || dim < 0)
99 for (
int i = 0; i < dim; i++)
103 howmany = (stride == 1 ? howmany : (howmany > stride ? stride : howmany));
113 n, howmany, stride, dist);
205 F77_FUNC (
cfftb, CFFTB) (
const octave_idx_type&, FloatComplex*,
214 if (dim > dv.
length () || dim < 0)
227 for (
int i = 0; i < dim; i++)
231 howmany = (stride == 1 ? howmany : (howmany > stride ? stride : howmany));
244 tmp[i] =
elem ((i + k*npts)*stride + j*dist);
249 retval((i + k*npts)*stride + j*dist) = tmp[i];
261 if (dim > dv.
length () || dim < 0)
274 for (
int i = 0; i < dim; i++)
278 howmany = (stride == 1 ? howmany : (howmany > stride ? stride : howmany));
291 tmp[i] =
elem ((i + k*npts)*stride + j*dist);
296 retval((i + k*npts)*stride + j*dist) = tmp[i] /
297 static_cast<float> (npts);
313 for (
int i = 0; i < rank; i++)
323 howmany = (stride == 1 ? howmany :
324 (howmany > stride ? stride : howmany));
337 prow[l] = retval((l + k*npts)*stride + j*dist);
342 retval((l + k*npts)*stride + j*dist) = prow[l];
361 for (
int i = 0; i < rank; i++)
371 howmany = (stride == 1 ? howmany :
372 (howmany > stride ? stride : howmany));
385 prow[l] = retval((l + k*npts)*stride + j*dist);
390 retval((l + k*npts)*stride + j*dist) =
391 prow[l] / static_cast<float> (npts);
409 for (
int i = 0; i < rank; i++)
419 howmany = (stride == 1 ? howmany :
420 (howmany > stride ? stride : howmany));
433 prow[l] = retval((l + k*npts)*stride + j*dist);
438 retval((l + k*npts)*stride + j*dist) = prow[l];
456 for (
int i = 0; i < rank; i++)
466 howmany = (stride == 1 ? howmany :
467 (howmany > stride ? stride : howmany));
480 prow[l] = retval((l + k*npts)*stride + j*dist);
485 retval((l + k*npts)*stride + j*dist) =
486 prow[l] / static_cast<float> (npts);
571 float val =
elem (i);
603 return do_mx_red_op<bool, float> (*
this, dim,
mx_inline_all);
609 return do_mx_red_op<bool, float> (*
this, dim,
mx_inline_any);
633 return do_mx_red_op<float, float> (*
this, dim,
mx_inline_sum);
657 return do_mx_minmax_op<float> (*
this, idx_arg, dim,
mx_inline_max);
669 return do_mx_minmax_op<float> (*
this, idx_arg, dim,
mx_inline_min);
717 retval.
insert (rb, ra_idx);
734 (*current_liboctave_error_handler)
735 (
"invalid conversion from NaN to character");
746 retval.
elem (i) =
static_cast<char>(ival);
750 if (rb.
numel () == 0)
753 retval.
insert (rb, ra_idx);
788 return do_mx_unary_map<float, float, std::abs> (*this);
794 return do_mx_unary_map<bool, float, xisnan> (*this);
800 return do_mx_unary_map<bool, float, xisinf> (*this);
806 return do_mx_unary_map<bool, float, xfinite> (*this);
818 (
"invalid conversion of FloatNDArray to FloatMatrix");
875 tmp = octave_read_value<float> (is);