eop_core_bones.hpp
Go to the documentation of this file.
1 // Copyright (C) 2010-2011 NICTA (www.nicta.com.au)
2 // Copyright (C) 2010-2011 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 
19 template<typename eop_type>
20 class eop_core
21  {
22  public:
23 
24  // matrices
25 
26  template<typename T1> arma_hot inline static void apply(Mat<typename T1::elem_type>& out, const eOp<T1, eop_type>& x);
27 
28  template<typename T1> arma_hot inline static void apply_inplace_plus (Mat<typename T1::elem_type>& out, const eOp<T1, eop_type>& x);
29  template<typename T1> arma_hot inline static void apply_inplace_minus(Mat<typename T1::elem_type>& out, const eOp<T1, eop_type>& x);
30  template<typename T1> arma_hot inline static void apply_inplace_schur(Mat<typename T1::elem_type>& out, const eOp<T1, eop_type>& x);
31  template<typename T1> arma_hot inline static void apply_inplace_div (Mat<typename T1::elem_type>& out, const eOp<T1, eop_type>& x);
32 
33 
34  // cubes
35 
36  template<typename T1> arma_hot inline static void apply(Cube<typename T1::elem_type>& out, const eOpCube<T1, eop_type>& x);
37 
38  template<typename T1> arma_hot inline static void apply_inplace_plus (Cube<typename T1::elem_type>& out, const eOpCube<T1, eop_type>& x);
39  template<typename T1> arma_hot inline static void apply_inplace_minus(Cube<typename T1::elem_type>& out, const eOpCube<T1, eop_type>& x);
40  template<typename T1> arma_hot inline static void apply_inplace_schur(Cube<typename T1::elem_type>& out, const eOpCube<T1, eop_type>& x);
41  template<typename T1> arma_hot inline static void apply_inplace_div (Cube<typename T1::elem_type>& out, const eOpCube<T1, eop_type>& x);
42 
43 
44  // common
45 
46  template<typename eT> arma_hot arma_pure arma_inline static eT process(const eT val, const eT k);
47  };
48 
49 
50 
51 class eop_neg : public eop_core<eop_neg> {};
52 class eop_scalar_plus : public eop_core<eop_scalar_plus> {};
53 class eop_scalar_minus_pre : public eop_core<eop_scalar_minus_pre> {};
54 class eop_scalar_minus_post : public eop_core<eop_scalar_minus_post> {};
55 class eop_scalar_times : public eop_core<eop_scalar_times> {};
56 class eop_scalar_div_pre : public eop_core<eop_scalar_div_pre> {};
57 class eop_scalar_div_post : public eop_core<eop_scalar_div_post> {};
58 class eop_square : public eop_core<eop_square> {};
59 class eop_sqrt : public eop_core<eop_sqrt> {};
60 class eop_log : public eop_core<eop_log> {};
61 class eop_log2 : public eop_core<eop_log2> {};
62 class eop_log10 : public eop_core<eop_log10> {};
63 class eop_trunc_log : public eop_core<eop_trunc_log> {};
64 class eop_exp : public eop_core<eop_exp> {};
65 class eop_exp2 : public eop_core<eop_exp2> {};
66 class eop_exp10 : public eop_core<eop_exp10> {};
67 class eop_trunc_exp : public eop_core<eop_trunc_exp> {};
68 class eop_cos : public eop_core<eop_cos> {};
69 class eop_sin : public eop_core<eop_sin> {};
70 class eop_tan : public eop_core<eop_tan> {};
71 class eop_acos : public eop_core<eop_acos> {};
72 class eop_asin : public eop_core<eop_asin> {};
73 class eop_atan : public eop_core<eop_atan> {};
74 class eop_cosh : public eop_core<eop_cosh> {};
75 class eop_sinh : public eop_core<eop_sinh> {};
76 class eop_tanh : public eop_core<eop_tanh> {};
77 class eop_acosh : public eop_core<eop_acosh> {};
78 class eop_asinh : public eop_core<eop_asinh> {};
79 class eop_atanh : public eop_core<eop_atanh> {};
80 class eop_eps : public eop_core<eop_eps> {};
81 class eop_abs : public eop_core<eop_abs> {};
82 class eop_conj : public eop_core<eop_conj> {};
83 class eop_pow : public eop_core<eop_pow> {};
84 class eop_floor : public eop_core<eop_floor> {};
85 class eop_ceil : public eop_core<eop_ceil> {};
86 
87 
88 
static arma_hot void apply_inplace_minus(Mat< typename T1::elem_type > &out, const eOp< T1, eop_type > &x)
static arma_hot void apply_inplace_schur(Mat< typename T1::elem_type > &out, const eOp< T1, eop_type > &x)
static arma_hot void apply_inplace_div(Mat< typename T1::elem_type > &out, const eOp< T1, eop_type > &x)
arma_hot arma_pure static arma_inline eT process(const eT val, const eT k)
Dense cube class.
Definition: Cube_bones.hpp:30
#define arma_pure
Dense matrix class.
#define arma_inline
static arma_hot void apply(Mat< typename T1::elem_type > &out, const eOp< T1, eop_type > &x)
#define arma_hot
static arma_hot void apply_inplace_plus(Mat< typename T1::elem_type > &out, const eOp< T1, eop_type > &x)


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