24 Mat<
typename std::complex<typename T1::pod_type> >& out,
30 typedef typename std::complex<typename T1::pod_type> eT;
31 typedef typename T1::pod_type T;
35 out.set_size(A.get_n_rows(), A.get_n_cols());
37 const eT k = X.aux_out_eT;
38 const uword n_elem = out.n_elem;
39 eT* out_mem = out.memptr();
41 for(
uword i=0; i<n_elem; ++i)
43 out_mem[i] = A[i] * k;
54 Mat<
typename std::complex<typename T1::pod_type> >& out,
60 typedef typename std::complex<typename T1::pod_type> eT;
61 typedef typename T1::pod_type T;
65 out.set_size(A.get_n_rows(), A.get_n_cols());
67 const eT k = X.aux_out_eT;
68 const uword n_elem = out.n_elem;
69 eT* out_mem = out.memptr();
71 for(
uword i=0; i<n_elem; ++i)
73 out_mem[i] = A[i] + k;
84 Mat<
typename std::complex<typename T1::pod_type> >& out,
90 typedef typename std::complex<typename T1::pod_type> eT;
91 typedef typename T1::pod_type T;
95 out.set_size(A.get_n_rows(), A.get_n_cols());
97 const eT k = X.aux_out_eT;
98 const uword n_elem = out.n_elem;
99 eT* out_mem = out.memptr();
101 for(
uword i=0; i<n_elem; ++i)
103 out_mem[i] = k - A[i];
109 template<
typename T1>
114 Mat<
typename std::complex<typename T1::pod_type> >& out,
120 typedef typename std::complex<typename T1::pod_type> eT;
121 typedef typename T1::pod_type T;
125 out.set_size(A.get_n_rows(), A.get_n_cols());
127 const eT k = X.aux_out_eT;
128 const uword n_elem = out.n_elem;
129 eT* out_mem = out.memptr();
131 for(
uword i=0; i<n_elem; ++i)
133 out_mem[i] = A[i] - k;
139 template<
typename T1>
144 Mat<
typename std::complex<typename T1::pod_type> >& out,
150 typedef typename std::complex<typename T1::pod_type> eT;
151 typedef typename T1::pod_type T;
155 out.set_size(A.get_n_rows(), A.get_n_cols());
157 const eT k = X.aux_out_eT;
158 const uword n_elem = out.n_elem;
159 eT* out_mem = out.memptr();
161 for(
uword i=0; i<n_elem; ++i)
163 out_mem[i] = k / A[i];
169 template<
typename T1>
174 Mat<
typename std::complex<typename T1::pod_type> >& out,
180 typedef typename std::complex<typename T1::pod_type> eT;
181 typedef typename T1::pod_type T;
185 out.set_size(A.get_n_rows(), A.get_n_cols());
187 const eT k = X.aux_out_eT;
188 const uword n_elem = out.n_elem;
189 eT* out_mem = out.memptr();
191 for(
uword i=0; i<n_elem; ++i)
193 out_mem[i] = A[i] / k;
205 template<
typename T1>
210 Cube<
typename std::complex<typename T1::pod_type> >& out,
216 typedef typename std::complex<typename T1::pod_type> eT;
217 typedef typename T1::pod_type T;
221 out.set_size(A.get_n_rows(), A.get_n_cols(), A.get_n_slices());
223 const eT k = X.aux_out_eT;
224 const uword n_elem = out.n_elem;
225 eT* out_mem = out.memptr();
227 for(
uword i=0; i<n_elem; ++i)
229 out_mem[i] = A[i] * k;
235 template<
typename T1>
240 Cube<
typename std::complex<typename T1::pod_type> >& out,
246 typedef typename std::complex<typename T1::pod_type> eT;
247 typedef typename T1::pod_type T;
251 out.set_size(A.get_n_rows(), A.get_n_cols(), A.get_n_slices());
253 const eT k = X.aux_out_eT;
254 const uword n_elem = out.n_elem;
255 eT* out_mem = out.memptr();
257 for(
uword i=0; i<n_elem; ++i)
259 out_mem[i] = A[i] + k;
265 template<
typename T1>
270 Cube<
typename std::complex<typename T1::pod_type> >& out,
276 typedef typename std::complex<typename T1::pod_type> eT;
277 typedef typename T1::pod_type T;
281 out.set_size(A.get_n_rows(), A.get_n_cols(), A.get_n_slices());
283 const eT k = X.aux_out_eT;
284 const uword n_elem = out.n_elem;
285 eT* out_mem = out.memptr();
287 for(
uword i=0; i<n_elem; ++i)
289 out_mem[i] = k - A[i];
295 template<
typename T1>
300 Cube<
typename std::complex<typename T1::pod_type> >& out,
306 typedef typename std::complex<typename T1::pod_type> eT;
307 typedef typename T1::pod_type T;
311 out.set_size(A.get_n_rows(), A.get_n_cols(), A.get_n_slices());
313 const eT k = X.aux_out_eT;
314 const uword n_elem = out.n_elem;
315 eT* out_mem = out.memptr();
317 for(
uword i=0; i<n_elem; ++i)
319 out_mem[i] = A[i] - k;
325 template<
typename T1>
330 Cube<
typename std::complex<typename T1::pod_type> >& out,
336 typedef typename std::complex<typename T1::pod_type> eT;
337 typedef typename T1::pod_type T;
341 out.set_size(A.get_n_rows(), A.get_n_cols(), A.get_n_slices());
343 const eT k = X.aux_out_eT;
344 const uword n_elem = out.n_elem;
345 eT* out_mem = out.memptr();
347 for(
uword i=0; i<n_elem; ++i)
349 out_mem[i] = k / A[i];
355 template<
typename T1>
360 Cube<
typename std::complex<typename T1::pod_type> >& out,
366 typedef typename std::complex<typename T1::pod_type> eT;
367 typedef typename T1::pod_type T;
371 out.set_size(A.get_n_rows(), A.get_n_cols(), A.get_n_slices());
373 const eT k = X.aux_out_eT;
374 const uword n_elem = out.n_elem;
375 eT* out_mem = out.memptr();
377 for(
uword i=0; i<n_elem; ++i)
379 out_mem[i] = A[i] / k;
static void apply(Mat< typename std::complex< typename T1::pod_type > > &out, const mtOp< typename std::complex< typename T1::pod_type >, T1, op_cx_scalar_div_post > &X)
static void apply(Mat< typename std::complex< typename T1::pod_type > > &out, const mtOp< typename std::complex< typename T1::pod_type >, T1, op_cx_scalar_minus_pre > &X)
static void apply(Mat< typename std::complex< typename T1::pod_type > > &out, const mtOp< typename std::complex< typename T1::pod_type >, T1, op_cx_scalar_times > &X)
static void apply(Mat< typename std::complex< typename T1::pod_type > > &out, const mtOp< typename std::complex< typename T1::pod_type >, T1, op_cx_scalar_div_pre > &X)
#define arma_extra_debug_sigprint
static void apply(Mat< typename std::complex< typename T1::pod_type > > &out, const mtOp< typename std::complex< typename T1::pod_type >, T1, op_cx_scalar_plus > &X)
static void apply(Mat< typename std::complex< typename T1::pod_type > > &out, const mtOp< typename std::complex< typename T1::pod_type >, T1, op_cx_scalar_minus_post > &X)