Base_meat.hpp
Go to the documentation of this file.
1 // Copyright (C) 2008-2011 NICTA (www.nicta.com.au)
2 // Copyright (C) 2008-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 elem_type, typename derived>
21 const derived&
23  {
24  return static_cast<const derived&>(*this);
25  }
26 
27 
28 
29 template<typename elem_type, typename derived>
33  {
34  return Op<derived,op_htrans>( (*this).get_ref() );
35  }
36 
37 
38 
39 template<typename elem_type, typename derived>
43  {
44  return Op<derived,op_strans>( (*this).get_ref() );
45  }
46 
47 
48 
49 template<typename elem_type, typename derived>
50 inline
51 void
52 Base<elem_type,derived>::print(const std::string extra_text) const
53  {
54  const unwrap<derived> tmp( (*this).get_ref() );
55 
56  tmp.M.impl_print(extra_text);
57  }
58 
59 
60 
61 template<typename elem_type, typename derived>
62 inline
63 void
64 Base<elem_type,derived>::print(std::ostream& user_stream, const std::string extra_text) const
65  {
66  const unwrap<derived> tmp( (*this).get_ref() );
67 
68  tmp.M.impl_print(user_stream, extra_text);
69  }
70 
71 
72 
73 template<typename elem_type, typename derived>
74 inline
75 void
76 Base<elem_type,derived>::print_trans(const std::string extra_text) const
77  {
78  const unwrap<derived> tmp( (*this).get_ref() );
79 
80  tmp.M.impl_print_trans(extra_text);
81  }
82 
83 
84 
85 template<typename elem_type, typename derived>
86 inline
87 void
88 Base<elem_type,derived>::print_trans(std::ostream& user_stream, const std::string extra_text) const
89  {
90  const unwrap<derived> tmp( (*this).get_ref() );
91 
92  tmp.M.impl_print_trans(user_stream, extra_text);
93  }
94 
95 
96 
97 template<typename elem_type, typename derived>
98 inline
99 void
100 Base<elem_type,derived>::raw_print(const std::string extra_text) const
101  {
102  const unwrap<derived> tmp( (*this).get_ref() );
103 
104  tmp.M.impl_raw_print(extra_text);
105  }
106 
107 
108 
109 template<typename elem_type, typename derived>
110 inline
111 void
112 Base<elem_type,derived>::raw_print(std::ostream& user_stream, const std::string extra_text) const
113  {
114  const unwrap<derived> tmp( (*this).get_ref() );
115 
116  tmp.M.impl_raw_print(user_stream, extra_text);
117  }
118 
119 
120 
121 template<typename elem_type, typename derived>
122 inline
123 void
124 Base<elem_type,derived>::raw_print_trans(const std::string extra_text) const
125  {
126  const unwrap<derived> tmp( (*this).get_ref() );
127 
128  tmp.M.impl_raw_print_trans(extra_text);
129  }
130 
131 
132 
133 template<typename elem_type, typename derived>
134 inline
135 void
136 Base<elem_type,derived>::raw_print_trans(std::ostream& user_stream, const std::string extra_text) const
137  {
138  const unwrap<derived> tmp( (*this).get_ref() );
139 
140  tmp.M.impl_raw_print_trans(user_stream, extra_text);
141  }
142 
143 
144 
arma_inline const derived & get_ref() const
Definition: Base_meat.hpp:22
arma_deprecated void print_trans(const std::string extra_text="") const
Definition: Base_meat.hpp:76
arma_inline const Op< derived, op_strans > st() const
Definition: Base_meat.hpp:42
void raw_print(const std::string extra_text="") const
Definition: Base_meat.hpp:100
const Mat< eT > M
Definition: unwrap.hpp:32
void print(const std::string extra_text="") const
Definition: Base_meat.hpp:52
arma_deprecated void raw_print_trans(const std::string extra_text="") const
Definition: Base_meat.hpp:124
#define arma_inline
arma_inline const Op< derived, op_htrans > t() const
Definition: Base_meat.hpp:32


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