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));
114 n, howmany, stride, dist);
201 F77_FUNC (
cfftb, CFFTB) (
const octave_idx_type&, FloatComplex*,
210 if (dim > dv.
length () || dim < 0)
223 for (
int i = 0; i < dim; i++)
227 howmany = (stride == 1 ? howmany : (howmany > stride ? stride : howmany));
240 tmp[i] =
elem ((i + k*npts)*stride + j*dist);
245 retval((i + k*npts)*stride + j*dist) = tmp[i];
257 if (dim > dv.
length () || dim < 0)
270 for (
int i = 0; i < dim; i++)
274 howmany = (stride == 1 ? howmany : (howmany > stride ? stride : howmany));
287 tmp[i] =
elem ((i + k*npts)*stride + j*dist);
292 retval((i + k*npts)*stride + j*dist) = tmp[i] /
293 static_cast<float> (npts);
309 for (
int i = 0; i < rank; i++)
319 howmany = (stride == 1 ? howmany :
320 (howmany > stride ? stride : howmany));
333 prow[l] = retval((l + k*npts)*stride + j*dist);
338 retval((l + k*npts)*stride + j*dist) = prow[l];
357 for (
int i = 0; i < rank; i++)
367 howmany = (stride == 1 ? howmany :
368 (howmany > stride ? stride : howmany));
381 prow[l] = retval((l + k*npts)*stride + j*dist);
386 retval((l + k*npts)*stride + j*dist) =
387 prow[l] / static_cast<float> (npts);
405 for (
int i = 0; i < rank; i++)
415 howmany = (stride == 1 ? howmany :
416 (howmany > stride ? stride : howmany));
429 prow[l] = retval((l + k*npts)*stride + j*dist);
434 retval((l + k*npts)*stride + j*dist) = prow[l];
452 for (
int i = 0; i < rank; i++)
462 howmany = (stride == 1 ? howmany :
463 (howmany > stride ? stride : howmany));
476 prow[l] = retval((l + k*npts)*stride + j*dist);
481 retval((l + k*npts)*stride + j*dist) =
482 prow[l] / static_cast<float> (npts);
502 return do_mx_unary_op<bool, FloatComplex> (*
this,
mx_inline_not);
590 return do_mx_red_op<bool, FloatComplex> (*
this, dim,
mx_inline_all);
596 return do_mx_red_op<bool, FloatComplex> (*
this, dim,
mx_inline_any);
602 return do_mx_cum_op<FloatComplex, FloatComplex> (*
this, dim,
609 return do_mx_cum_op<FloatComplex, FloatComplex> (*
this, dim,
616 return do_mx_red_op<FloatComplex, FloatComplex> (*
this, dim,
mx_inline_prod);
622 return do_mx_red_op<FloatComplex, FloatComplex> (*
this, dim,
mx_inline_sum);
628 return do_mx_red_op<Complex, FloatComplex> (*
this, dim,
mx_inline_dsum);
634 return do_mx_red_op<float, FloatComplex> (*
this, dim,
mx_inline_sumsq);
640 return do_mx_diff_op<FloatComplex> (*
this, dim, order,
mx_inline_diff);
668 retval.
insert (rb, ra_idx);
678 return do_mx_minmax_op<FloatComplex> (*
this, dim,
mx_inline_max);
684 return do_mx_minmax_op<FloatComplex> (*
this, idx_arg, dim,
mx_inline_max);
690 return do_mx_minmax_op<FloatComplex> (*
this, dim,
mx_inline_min);
696 return do_mx_minmax_op<FloatComplex> (*
this, idx_arg, dim,
mx_inline_min);
708 return do_mx_cumminmax_op<FloatComplex> (*
this, idx_arg, dim,
721 return do_mx_cumminmax_op<FloatComplex> (*
this, idx_arg, dim,
728 return do_mx_unary_map<float, FloatComplex, std::abs> (*this);
734 return do_mx_unary_map<bool, FloatComplex, xisnan> (*this);
740 return do_mx_unary_map<bool, FloatComplex, xisinf> (*this);
746 return do_mx_unary_map<bool, FloatComplex, xfinite> (*this);
752 return do_mx_unary_map<FloatComplex, FloatComplex, std::conj<float> > (a);
767 a_ra_idx.
elem (0) = r;
768 a_ra_idx.
elem (1) = c;
770 for (
int i = 0; i < n; i++)
772 if (a_ra_idx (i) < 0 || (a_ra_idx (i) + a_dv (i)) >
dimensions (i))
774 (*current_liboctave_error_handler)
775 (
"Array<T>::insert: range error for insert");
780 a_ra_idx.
elem (0) = 0;
781 a_ra_idx.
elem (1) = 0;
791 ra_idx.
elem (0) = a_ra_idx (0) + r;
792 ra_idx.
elem (1) = a_ra_idx (1) + c;
801 (
"Array<T>::insert: invalid indexing operation");
831 (
"invalid conversion of FloatComplexNDArray to FloatComplexMatrix");
888 tmp = octave_read_value<FloatComplex> (is);
912 FloatComplexNDArray& operator *= (FloatComplexNDArray& a,
float s)