operator_div.hpp
Go to the documentation of this file.
1 // Copyright (C) 2009-2010 NICTA (www.nicta.com.au)
2 // Copyright (C) 2009-2010 Conrad Sanderson
3 //
4 // This file is part of the Armadillo C++ library.
5 // It is provided without any warranty of fitness
6 // for any purpose. You can redistribute this file
7 // and/or modify it under the terms of the GNU
8 // Lesser General Public License (LGPL) as published
9 // by the Free Software Foundation, either version 3
10 // of the License or (at your option) any later version.
11 // (see http://www.opensource.org/licenses for more info)
12 
13 
16 
17 
18 
20 template<typename T1>
23 operator/
24  (
26  const typename T1::elem_type k
27  )
28  {
30 
32  }
33 
34 
35 
37 template<typename T1>
40 operator/
41  (
42  const typename T1::elem_type k,
44  )
45  {
47 
48  return eOp<T1, eop_scalar_div_pre>(X.get_ref(), k);
49  }
50 
51 
52 
54 template<typename T1>
57 operator/
58  (
59  const std::complex<typename T1::pod_type>& k,
61  )
62  {
64 
65  return mtOp<typename std::complex<typename T1::pod_type>, T1, op_cx_scalar_div_pre>('j', X.get_ref(), k);
66  }
67 
68 
69 
71 template<typename T1>
73 const mtOp<typename std::complex<typename T1::pod_type>, T1, op_cx_scalar_div_post>
74 operator/
75  (
77  const std::complex<typename T1::pod_type>& k
78  )
79  {
81 
82  return mtOp<typename std::complex<typename T1::pod_type>, T1, op_cx_scalar_div_post>('j', X.get_ref(), k);
83  }
84 
85 
86 
88 template<typename T1, typename T2>
91 operator/
92  (
95  )
96  {
98 
99  return eGlue<T1, T2, eglue_div>(X.get_ref(), Y.get_ref());
100  }
101 
102 
103 
105 template<typename T1, typename T2>
106 inline
108 operator/
109  (
112  )
113  {
115 
116  typedef typename T1::elem_type eT1;
117  typedef typename T2::elem_type eT2;
118 
119  typedef typename promote_type<eT1,eT2>::result out_eT;
120 
122 
123  return mtGlue<out_eT, T1, T2, glue_mixed_div>( X.get_ref(), Y.get_ref() );
124  }
125 
126 
127 
is_promotable< T1, T2 >::result result
static void check()
arma_inline const derived & get_ref() const
Definition: Base_meat.hpp:22
#define arma_extra_debug_sigprint
Definition: debug.hpp:1116
#define arma_inline


armadillo_matrix
Author(s):
autogenerated on Fri Apr 16 2021 02:31:58