mtOpCube_meat.hpp 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. // Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au)
  2. // Copyright 2008-2016 National ICT Australia (NICTA)
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // ------------------------------------------------------------------------
  15. //! \addtogroup mtOpCube
  16. //! @{
  17. template<typename out_eT, typename T1, typename op_type>
  18. inline
  19. mtOpCube<out_eT, T1, op_type>::mtOpCube(const T1& in_m)
  20. : m(in_m)
  21. {
  22. arma_extra_debug_sigprint();
  23. }
  24. template<typename out_eT, typename T1, typename op_type>
  25. inline
  26. mtOpCube<out_eT, T1, op_type>::mtOpCube(const T1& in_m, const typename T1::elem_type in_aux)
  27. : m(in_m)
  28. , aux(in_aux)
  29. {
  30. arma_extra_debug_sigprint();
  31. }
  32. template<typename out_eT, typename T1, typename op_type>
  33. inline
  34. mtOpCube<out_eT, T1, op_type>::mtOpCube(const T1& in_m, const uword in_aux_uword_a, const uword in_aux_uword_b, const uword in_aux_uword_c)
  35. : m(in_m)
  36. , aux_uword_a(in_aux_uword_a)
  37. , aux_uword_b(in_aux_uword_b)
  38. , aux_uword_c(in_aux_uword_c)
  39. {
  40. arma_extra_debug_sigprint();
  41. }
  42. template<typename out_eT, typename T1, typename op_type>
  43. inline
  44. mtOpCube<out_eT, T1, op_type>::mtOpCube(const T1& in_m, const typename T1::elem_type in_aux, const uword in_aux_uword_a, const uword in_aux_uword_b, const uword in_aux_uword_c)
  45. : m(in_m)
  46. , aux(in_aux)
  47. , aux_uword_a(in_aux_uword_a)
  48. , aux_uword_b(in_aux_uword_b)
  49. , aux_uword_c(in_aux_uword_c)
  50. {
  51. arma_extra_debug_sigprint();
  52. }
  53. template<typename out_eT, typename T1, typename op_type>
  54. inline
  55. mtOpCube<out_eT, T1, op_type>::mtOpCube(const char junk, const T1& in_m, const out_eT in_aux)
  56. : m(in_m)
  57. , aux_out_eT(in_aux)
  58. {
  59. arma_extra_debug_sigprint();
  60. arma_ignore(junk);
  61. }
  62. template<typename out_eT, typename T1, typename op_type>
  63. inline
  64. mtOpCube<out_eT, T1, op_type>::mtOpCube(const mtOpCube_dual_aux_indicator&, const T1& in_m, const typename T1::elem_type in_aux_a, const out_eT in_aux_b)
  65. : m (in_m )
  66. , aux (in_aux_a)
  67. , aux_out_eT(in_aux_b)
  68. {
  69. arma_extra_debug_sigprint();
  70. }
  71. template<typename out_eT, typename T1, typename op_type>
  72. inline
  73. mtOpCube<out_eT, T1, op_type>::~mtOpCube()
  74. {
  75. arma_extra_debug_sigprint();
  76. }
  77. //! @}