Classes | |
class | conv_to< out_eT > |
conversion from Armadillo Base and BaseCube objects to scalars (kept only for compatibility with old code; use as_scalar() instead for Base objects like Mat) More... | |
class | conv_to< Mat< out_eT > > |
conversion to Armadillo matrices from Armadillo Base objects, as well as from std::vector, itpp::Mat and itpp::Vec More... | |
class | conv_to< Row< out_eT > > |
conversion to Armadillo row vectors from Armadillo Base objects, as well as from std::vector, itpp::Mat and itpp::Vec More... | |
class | conv_to< Col< out_eT > > |
conversion to Armadillo column vectors from Armadillo Base objects, as well as from std::vector, itpp::Mat and itpp::Vec More... | |
class | conv_to< Cube< out_eT > > |
conversion to Armadillo cubes from Armadillo BaseCube objects More... | |
class | conv_to< std::vector< out_eT > > |
conversion to std::vector from Armadillo Base objects More... | |
class | conv_to< itpp::Mat< out_eT > > |
conversion to itpp::Mat from Armadillo Base objects More... | |
class | conv_to< itpp::Vec< out_eT > > |
conversion to itpp::Vec from Armadillo Base objects More... | |
Functions | |
template<typename in_eT , typename T1 > | |
static out_eT | conv_to::from (const Base< in_eT, T1 > &in, const typename arma_not_cx< in_eT >::result *junk=0) |
template<typename in_eT , typename T1 > | |
static out_eT | conv_to::from (const Base< in_eT, T1 > &in, const typename arma_cx_only< in_eT >::result *junk=0) |
template<typename in_eT , typename T1 > | |
static out_eT | conv_to::from (const BaseCube< in_eT, T1 > &in, const typename arma_not_cx< in_eT >::result *junk=0) |
template<typename in_eT , typename T1 > | |
static out_eT | conv_to::from (const BaseCube< in_eT, T1 > &in, const typename arma_cx_only< in_eT >::result *junk=0) |
template<typename in_eT , typename T1 > | |
static Mat< out_eT > | conv_to< Mat< out_eT > >::from (const Base< in_eT, T1 > &in, const typename arma_not_cx< in_eT >::result *junk=0) |
template<typename in_eT , typename T1 > | |
static Mat< out_eT > | conv_to< Mat< out_eT > >::from (const Base< in_eT, T1 > &in, const typename arma_cx_only< in_eT >::result *junk=0) |
template<typename in_eT > | |
static Mat< out_eT > | conv_to< Mat< out_eT > >::from (const std::vector< in_eT > &in, const typename arma_not_cx< in_eT >::result *junk=0) |
template<typename in_eT > | |
static Mat< out_eT > | conv_to< Mat< out_eT > >::from (const std::vector< in_eT > &in, const typename arma_cx_only< in_eT >::result *junk=0) |
template<typename in_eT > | |
static Mat< out_eT > | conv_to< Mat< out_eT > >::from (const itpp::Mat< in_eT > &in, const typename arma_not_cx< in_eT >::result *junk=0) |
template<typename in_eT > | |
static Mat< out_eT > | conv_to< Mat< out_eT > >::from (const itpp::Mat< in_eT > &in, const typename arma_cx_only< in_eT >::result *junk=0) |
template<typename in_eT > | |
static Mat< out_eT > | conv_to< Mat< out_eT > >::from (const itpp::Vec< in_eT > &in, const typename arma_not_cx< in_eT >::result *junk=0) |
template<typename in_eT > | |
static Mat< out_eT > | conv_to< Mat< out_eT > >::from (const itpp::Vec< in_eT > &in, const typename arma_cx_only< in_eT >::result *junk=0) |
template<typename in_eT , typename T1 > | |
static Row< out_eT > | conv_to< Row< out_eT > >::from (const Base< in_eT, T1 > &in, const typename arma_not_cx< in_eT >::result *junk=0) |
template<typename in_eT , typename T1 > | |
static Row< out_eT > | conv_to< Row< out_eT > >::from (const Base< in_eT, T1 > &in, const typename arma_cx_only< in_eT >::result *junk=0) |
template<typename in_eT > | |
static Row< out_eT > | conv_to< Row< out_eT > >::from (const std::vector< in_eT > &in, const typename arma_not_cx< in_eT >::result *junk=0) |
template<typename in_eT > | |
static Row< out_eT > | conv_to< Row< out_eT > >::from (const std::vector< in_eT > &in, const typename arma_cx_only< in_eT >::result *junk=0) |
template<typename in_eT > | |
static Row< out_eT > | conv_to< Row< out_eT > >::from (const itpp::Mat< in_eT > &in, const typename arma_not_cx< in_eT >::result *junk=0) |
template<typename in_eT > | |
static Row< out_eT > | conv_to< Row< out_eT > >::from (const itpp::Mat< in_eT > &in, const typename arma_cx_only< in_eT >::result *junk=0) |
template<typename in_eT > | |
static Row< out_eT > | conv_to< Row< out_eT > >::from (const itpp::Vec< in_eT > &in, const typename arma_not_cx< in_eT >::result *junk=0) |
template<typename in_eT > | |
static Row< out_eT > | conv_to< Row< out_eT > >::from (const itpp::Vec< in_eT > &in, const typename arma_cx_only< in_eT >::result *junk=0) |
template<typename in_eT , typename T1 > | |
static Col< out_eT > | conv_to< Col< out_eT > >::from (const Base< in_eT, T1 > &in, const typename arma_not_cx< in_eT >::result *junk=0) |
template<typename in_eT , typename T1 > | |
static Col< out_eT > | conv_to< Col< out_eT > >::from (const Base< in_eT, T1 > &in, const typename arma_cx_only< in_eT >::result *junk=0) |
template<typename in_eT > | |
static Col< out_eT > | conv_to< Col< out_eT > >::from (const std::vector< in_eT > &in, const typename arma_not_cx< in_eT >::result *junk=0) |
template<typename in_eT > | |
static Col< out_eT > | conv_to< Col< out_eT > >::from (const std::vector< in_eT > &in, const typename arma_cx_only< in_eT >::result *junk=0) |
template<typename in_eT > | |
static Col< out_eT > | conv_to< Col< out_eT > >::from (const itpp::Mat< in_eT > &in, const typename arma_not_cx< in_eT >::result *junk=0) |
template<typename in_eT > | |
static Col< out_eT > | conv_to< Col< out_eT > >::from (const itpp::Mat< in_eT > &in, const typename arma_cx_only< in_eT >::result *junk=0) |
template<typename in_eT > | |
static Col< out_eT > | conv_to< Col< out_eT > >::from (const itpp::Vec< in_eT > &in, const typename arma_not_cx< in_eT >::result *junk=0) |
template<typename in_eT > | |
static Col< out_eT > | conv_to< Col< out_eT > >::from (const itpp::Vec< in_eT > &in, const typename arma_cx_only< in_eT >::result *junk=0) |
template<typename in_eT , typename T1 > | |
static Cube< out_eT > | conv_to< Cube< out_eT > >::from (const BaseCube< in_eT, T1 > &in, const typename arma_not_cx< in_eT >::result *junk=0) |
template<typename in_eT , typename T1 > | |
static Cube< out_eT > | conv_to< Cube< out_eT > >::from (const BaseCube< in_eT, T1 > &in, const typename arma_cx_only< in_eT >::result *junk=0) |
template<typename in_eT , typename T1 > | |
static std::vector< out_eT > | conv_to< std::vector< out_eT > >::from (const Base< in_eT, T1 > &in, const typename arma_not_cx< in_eT >::result *junk=0) |
template<typename in_eT , typename T1 > | |
static std::vector< out_eT > | conv_to< std::vector< out_eT > >::from (const Base< in_eT, T1 > &in, const typename arma_cx_only< in_eT >::result *junk=0) |
template<typename in_eT , typename T1 > | |
static itpp::Mat< out_eT > | conv_to< itpp::Mat< out_eT > >::from (const Base< in_eT, T1 > &in, const typename arma_not_cx< in_eT >::result *junk=0) |
template<typename in_eT , typename T1 > | |
static itpp::Mat< out_eT > | conv_to< itpp::Mat< out_eT > >::from (const Base< in_eT, T1 > &in, const typename arma_cx_only< in_eT >::result *junk=0) |
template<typename in_eT , typename T1 > | |
static itpp::Vec< out_eT > | conv_to< itpp::Vec< out_eT > >::from (const Base< in_eT, T1 > &in, const typename arma_not_cx< in_eT >::result *junk=0) |
template<typename in_eT , typename T1 > | |
static itpp::Vec< out_eT > | conv_to< itpp::Vec< out_eT > >::from (const Base< in_eT, T1 > &in, const typename arma_cx_only< in_eT >::result *junk=0) |
out_eT conv_to< out_eT >::from | ( | const Base< in_eT, T1 > & | in, | |
const typename arma_not_cx< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 48 of file fn_conv_to.hpp.
References Base< elem_type, derived >::get_ref().
00049 { 00050 arma_extra_debug_sigprint(); 00051 00052 arma_type_check< is_supported_elem_type<out_eT>::value == false >::apply(); 00053 00054 const unwrap<T1> tmp(in.get_ref()); 00055 const Mat<in_eT>& X = tmp.M; 00056 00057 arma_debug_check( (X.n_elem != 1), "conv_to(): given object doesn't have exactly one element" ); 00058 00059 return out_eT(X.mem[0]); 00060 }
out_eT conv_to< out_eT >::from | ( | const Base< in_eT, T1 > & | in, | |
const typename arma_cx_only< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 68 of file fn_conv_to.hpp.
References syslib::convert_cx_scalar(), and Base< elem_type, derived >::get_ref().
00069 { 00070 arma_extra_debug_sigprint(); 00071 00072 arma_type_check< is_supported_elem_type<out_eT>::value == false >::apply(); 00073 00074 const unwrap<T1> tmp(in.get_ref()); 00075 const Mat<in_eT>& X = tmp.M; 00076 00077 arma_debug_check( (X.n_elem != 1), "conv_to(): given object doesn't have exactly one element" ); 00078 00079 out_eT out; 00080 00081 syslib::convert_cx_scalar(out, X.mem[0]); 00082 00083 return out; 00084 }
out_eT conv_to< out_eT >::from | ( | const BaseCube< in_eT, T1 > & | in, | |
const typename arma_not_cx< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 92 of file fn_conv_to.hpp.
References BaseCube< elem_type, derived >::get_ref().
00093 { 00094 arma_extra_debug_sigprint(); 00095 00096 arma_type_check< is_supported_elem_type<out_eT>::value == false >::apply(); 00097 00098 const unwrap_cube<T1> tmp(in.get_ref()); 00099 const Cube<in_eT>& X = tmp.M; 00100 00101 arma_debug_check( (X.n_elem != 1), "conv_to(): given object doesn't have exactly one element" ); 00102 00103 return out_eT(X.mem[0]); 00104 }
out_eT conv_to< out_eT >::from | ( | const BaseCube< in_eT, T1 > & | in, | |
const typename arma_cx_only< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 112 of file fn_conv_to.hpp.
References syslib::convert_cx_scalar(), and BaseCube< elem_type, derived >::get_ref().
00113 { 00114 arma_extra_debug_sigprint(); 00115 00116 arma_type_check< is_supported_elem_type<out_eT>::value == false >::apply(); 00117 00118 const unwrap_cube<T1> tmp(in.get_ref()); 00119 const Cube<in_eT>& X = tmp.M; 00120 00121 arma_debug_check( (X.n_elem != 1), "conv_to(): given object doesn't have exactly one element" ); 00122 00123 out_eT out; 00124 00125 syslib::convert_cx_scalar(out, X.mem[0]); 00126 00127 return out; 00128 }
Mat< out_eT > conv_to< Mat< out_eT > >::from | ( | const Base< in_eT, T1 > & | in, | |
const typename arma_not_cx< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 176 of file fn_conv_to.hpp.
References syslib::copy_and_convert_elem(), Mat< eT >::memptr(), and Mat< eT >::n_elem.
00177 { 00178 arma_extra_debug_sigprint(); 00179 00180 const unwrap<T1> tmp(in.get_ref()); 00181 const Mat<in_eT>& X = tmp.M; 00182 00183 Mat<out_eT> out(X.n_rows, X.n_cols); 00184 00185 syslib::copy_and_convert_elem( out.memptr(), X.memptr(), out.n_elem ); 00186 00187 return out; 00188 }
Mat< out_eT > conv_to< Mat< out_eT > >::from | ( | const Base< in_eT, T1 > & | in, | |
const typename arma_cx_only< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 196 of file fn_conv_to.hpp.
References syslib::copy_and_convert_cx_elem(), Mat< eT >::memptr(), and Mat< eT >::n_elem.
00197 { 00198 arma_extra_debug_sigprint(); 00199 00200 const unwrap<T1> tmp(in.get_ref()); 00201 const Mat<in_eT>& X = tmp.M; 00202 00203 Mat<out_eT> out(X.n_rows, X.n_cols); 00204 00205 syslib::copy_and_convert_cx_elem( out.memptr(), X.memptr(), out.n_elem ); 00206 00207 return out; 00208 }
Mat< out_eT > conv_to< Mat< out_eT > >::from | ( | const std::vector< in_eT > & | in, | |
const typename arma_not_cx< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 216 of file fn_conv_to.hpp.
00217 { 00218 arma_extra_debug_sigprint(); 00219 00220 Mat<out_eT> out(in.size(), 1); 00221 00222 typename std::vector<in_eT>::const_iterator in_begin = in.begin(); 00223 typename std::vector<in_eT>::const_iterator in_end = in.end(); 00224 00225 typename Mat<out_eT>::iterator out_begin = out.begin(); 00226 typename Mat<out_eT>::iterator out_end = out.end(); 00227 00228 typename std::vector<in_eT>::const_iterator in_it; 00229 typename Mat<out_eT>::iterator out_it; 00230 00231 for(in_it = in_begin, out_it = out_begin; (in_it != in_end) && (out_it != out_end); ++in_it, ++out_it) 00232 { 00233 (*out_it) = out_eT(*in_it); 00234 } 00235 00236 return out; 00237 }
Mat< out_eT > conv_to< Mat< out_eT > >::from | ( | const std::vector< in_eT > & | in, | |
const typename arma_cx_only< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 245 of file fn_conv_to.hpp.
References syslib::convert_cx_scalar().
00246 { 00247 arma_extra_debug_sigprint(); 00248 00249 Mat<out_eT> out(in.size(), 1); 00250 00251 typename std::vector<in_eT>::const_iterator in_begin = in.begin(); 00252 typename std::vector<in_eT>::const_iterator in_end = in.end(); 00253 00254 typename Mat<out_eT>::iterator out_begin = out.begin(); 00255 typename Mat<out_eT>::iterator out_end = out.end(); 00256 00257 typename std::vector<in_eT>::const_iterator in_it; 00258 typename Mat<out_eT>::iterator out_it; 00259 00260 for(in_it = in_begin, out_it = out_begin; (in_it != in_end) && (out_it != out_end); ++in_it, ++out_it) 00261 { 00262 out_eT& out_elem = (*out_it); 00263 const in_eT& in_elem = (*in_it); 00264 00265 syslib::convert_cx_scalar(out_elem, in_elem); 00266 } 00267 00268 return out; 00269 }
Mat< out_eT > conv_to< Mat< out_eT > >::from | ( | const itpp::Mat< in_eT > & | in, | |
const typename arma_not_cx< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 277 of file fn_conv_to.hpp.
References syslib::copy_and_convert_elem().
00278 { 00279 arma_extra_debug_sigprint(); 00280 00281 Mat<out_eT> out(in.rows(), in.cols()); 00282 00283 syslib::copy_and_convert_elem( out.memptr(), in._data(), out.n_elem ); 00284 00285 return out; 00286 }
Mat< out_eT > conv_to< Mat< out_eT > >::from | ( | const itpp::Mat< in_eT > & | in, | |
const typename arma_cx_only< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 294 of file fn_conv_to.hpp.
References syslib::copy_and_convert_cx_elem().
00295 { 00296 arma_extra_debug_sigprint(); 00297 00298 Mat<out_eT> out(in.rows(), in.cols()); 00299 00300 syslib::copy_and_convert_cx_elem( out.memptr(), in._data(), out.n_elem ); 00301 00302 return out; 00303 }
Mat< out_eT > conv_to< Mat< out_eT > >::from | ( | const itpp::Vec< in_eT > & | in, | |
const typename arma_not_cx< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 311 of file fn_conv_to.hpp.
References syslib::copy_and_convert_elem().
00312 { 00313 arma_extra_debug_sigprint(); 00314 00315 Mat<out_eT> out(in.length(), 1); 00316 00317 syslib::copy_and_convert_elem( out.memptr(), in._data(), out.n_elem ); 00318 00319 return out; 00320 }
Mat< out_eT > conv_to< Mat< out_eT > >::from | ( | const itpp::Vec< in_eT > & | in, | |
const typename arma_cx_only< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 328 of file fn_conv_to.hpp.
References syslib::copy_and_convert_cx_elem().
00329 { 00330 arma_extra_debug_sigprint(); 00331 00332 Mat<out_eT> out(in.length(), 1); 00333 00334 syslib::copy_and_convert_cx_elem( out.memptr(), in._data(), out.n_elem ); 00335 00336 return out; 00337 }
Row< out_eT > conv_to< Row< out_eT > >::from | ( | const Base< in_eT, T1 > & | in, | |
const typename arma_not_cx< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 385 of file fn_conv_to.hpp.
References syslib::copy_and_convert_elem(), Mat< eT >::memptr(), and Mat< eT >::n_elem.
00386 { 00387 arma_extra_debug_sigprint(); 00388 00389 const unwrap<T1> tmp(in.get_ref()); 00390 const Mat<in_eT>& X = tmp.M; 00391 00392 arma_debug_check( (X.is_vec() == false), "conv_to(): given object can't be interpreted as a vector" ); 00393 00394 Row<out_eT> out(X.n_elem); 00395 00396 syslib::copy_and_convert_elem( out.memptr(), X.memptr(), out.n_elem ); 00397 00398 return out; 00399 }
Row< out_eT > conv_to< Row< out_eT > >::from | ( | const Base< in_eT, T1 > & | in, | |
const typename arma_cx_only< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 407 of file fn_conv_to.hpp.
References syslib::copy_and_convert_cx_elem(), Mat< eT >::memptr(), and Mat< eT >::n_elem.
00408 { 00409 arma_extra_debug_sigprint(); 00410 00411 const unwrap<T1> tmp(in.get_ref()); 00412 const Mat<in_eT>& X = tmp.M; 00413 00414 arma_debug_check( (X.is_vec() == false), "conv_to(): given object can't be interpreted as a vector" ); 00415 00416 Row<out_eT> out(X.n_rows, X.n_cols); 00417 00418 syslib::copy_and_convert_cx_elem( out.memptr(), X.memptr(), out.n_elem ); 00419 00420 return out; 00421 }
Row< out_eT > conv_to< Row< out_eT > >::from | ( | const std::vector< in_eT > & | in, | |
const typename arma_not_cx< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 429 of file fn_conv_to.hpp.
00430 { 00431 arma_extra_debug_sigprint(); 00432 00433 Row<out_eT> out( in.size() ); 00434 00435 typename std::vector<in_eT>::const_iterator in_begin = in.begin(); 00436 typename std::vector<in_eT>::const_iterator in_end = in.end(); 00437 00438 typename Col<out_eT>::iterator out_begin = out.begin(); 00439 typename Col<out_eT>::iterator out_end = out.end(); 00440 00441 typename std::vector<in_eT>::const_iterator in_it; 00442 typename Col<out_eT>::iterator out_it; 00443 00444 for(in_it = in_begin, out_it = out_begin; (in_it != in_end) && (out_it != out_end); ++in_it, ++out_it) 00445 { 00446 (*out_it) = out_eT(*in_it); 00447 } 00448 00449 return out; 00450 }
Row< out_eT > conv_to< Row< out_eT > >::from | ( | const std::vector< in_eT > & | in, | |
const typename arma_cx_only< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 458 of file fn_conv_to.hpp.
References syslib::convert_cx_scalar().
00459 { 00460 arma_extra_debug_sigprint(); 00461 00462 Row<out_eT> out( in.size() ); 00463 00464 typename std::vector<in_eT>::const_iterator in_begin = in.begin(); 00465 typename std::vector<in_eT>::const_iterator in_end = in.end(); 00466 00467 typename Col<out_eT>::iterator out_begin = out.begin(); 00468 typename Col<out_eT>::iterator out_end = out.end(); 00469 00470 typename std::vector<in_eT>::const_iterator in_it; 00471 typename Col<out_eT>::iterator out_it; 00472 00473 for(in_it = in_begin, out_it = out_begin; (in_it != in_end) && (out_it != out_end); ++in_it, ++out_it) 00474 { 00475 out_eT& out_elem = (*out_it); 00476 const in_eT& in_elem = (*in_it); 00477 00478 syslib::convert_cx_scalar(out_elem, in_elem); 00479 } 00480 00481 return out; 00482 }
Row< out_eT > conv_to< Row< out_eT > >::from | ( | const itpp::Mat< in_eT > & | in, | |
const typename arma_not_cx< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 490 of file fn_conv_to.hpp.
References syslib::copy_and_convert_elem().
00491 { 00492 arma_extra_debug_sigprint(); 00493 00494 const bool is_vec = ( (in.rows() == 1) || (in.cols() == 1) ); 00495 00496 arma_debug_check( (is_vec == false), "conv_to(): given object can't be interpreted as a vector" ); 00497 00498 Row<out_eT> out(in.rows() * in.cols()); 00499 00500 syslib::copy_and_convert_elem( out.memptr(), in._data(), out.n_elem ); 00501 00502 return out; 00503 }
Row< out_eT > conv_to< Row< out_eT > >::from | ( | const itpp::Mat< in_eT > & | in, | |
const typename arma_cx_only< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 511 of file fn_conv_to.hpp.
References syslib::copy_and_convert_cx_elem().
00512 { 00513 arma_extra_debug_sigprint(); 00514 00515 const bool is_vec = ( (in.rows() == 1) || (in.cols() == 1) ); 00516 00517 Row<out_eT> out(in.rows() * in.cols()); 00518 00519 syslib::copy_and_convert_cx_elem( out.memptr(), in._data(), out.n_elem ); 00520 00521 return out; 00522 }
Row< out_eT > conv_to< Row< out_eT > >::from | ( | const itpp::Vec< in_eT > & | in, | |
const typename arma_not_cx< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 530 of file fn_conv_to.hpp.
References syslib::copy_and_convert_elem().
00531 { 00532 arma_extra_debug_sigprint(); 00533 00534 Row<out_eT> out(in.length()); 00535 00536 syslib::copy_and_convert_elem( out.memptr(), in._data(), out.n_elem ); 00537 00538 return out; 00539 }
Row< out_eT > conv_to< Row< out_eT > >::from | ( | const itpp::Vec< in_eT > & | in, | |
const typename arma_cx_only< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 547 of file fn_conv_to.hpp.
References syslib::copy_and_convert_cx_elem().
00548 { 00549 arma_extra_debug_sigprint(); 00550 00551 Row<out_eT> out(in.length()); 00552 00553 syslib::copy_and_convert_cx_elem( out.memptr(), in._data(), out.n_elem ); 00554 00555 return out; 00556 }
Col< out_eT > conv_to< Col< out_eT > >::from | ( | const Base< in_eT, T1 > & | in, | |
const typename arma_not_cx< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 604 of file fn_conv_to.hpp.
References syslib::copy_and_convert_elem(), Mat< eT >::memptr(), and Mat< eT >::n_elem.
00605 { 00606 arma_extra_debug_sigprint(); 00607 00608 const unwrap<T1> tmp(in.get_ref()); 00609 const Mat<in_eT>& X = tmp.M; 00610 00611 arma_debug_check( (X.is_vec() == false), "conv_to(): given object can't be interpreted as a vector" ); 00612 00613 Col<out_eT> out(X.n_elem); 00614 00615 syslib::copy_and_convert_elem( out.memptr(), X.memptr(), out.n_elem ); 00616 00617 return out; 00618 }
Col< out_eT > conv_to< Col< out_eT > >::from | ( | const Base< in_eT, T1 > & | in, | |
const typename arma_cx_only< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 626 of file fn_conv_to.hpp.
References syslib::copy_and_convert_cx_elem(), Mat< eT >::memptr(), and Mat< eT >::n_elem.
00627 { 00628 arma_extra_debug_sigprint(); 00629 00630 const unwrap<T1> tmp(in.get_ref()); 00631 const Mat<in_eT>& X = tmp.M; 00632 00633 arma_debug_check( (X.is_vec() == false), "conv_to(): given object can't be interpreted as a vector" ); 00634 00635 Col<out_eT> out(X.n_rows, X.n_cols); 00636 00637 syslib::copy_and_convert_cx_elem( out.memptr(), X.memptr(), out.n_elem ); 00638 00639 return out; 00640 }
Col< out_eT > conv_to< Col< out_eT > >::from | ( | const std::vector< in_eT > & | in, | |
const typename arma_not_cx< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 648 of file fn_conv_to.hpp.
00649 { 00650 arma_extra_debug_sigprint(); 00651 00652 Col<out_eT> out( in.size() ); 00653 00654 typename std::vector<in_eT>::const_iterator in_begin = in.begin(); 00655 typename std::vector<in_eT>::const_iterator in_end = in.end(); 00656 00657 typename Col<out_eT>::iterator out_begin = out.begin(); 00658 typename Col<out_eT>::iterator out_end = out.end(); 00659 00660 typename std::vector<in_eT>::const_iterator in_it; 00661 typename Col<out_eT>::iterator out_it; 00662 00663 for(in_it = in_begin, out_it = out_begin; (in_it != in_end) && (out_it != out_end); ++in_it, ++out_it) 00664 { 00665 (*out_it) = out_eT(*in_it); 00666 } 00667 00668 return out; 00669 }
Col< out_eT > conv_to< Col< out_eT > >::from | ( | const std::vector< in_eT > & | in, | |
const typename arma_cx_only< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 677 of file fn_conv_to.hpp.
References syslib::convert_cx_scalar().
00678 { 00679 arma_extra_debug_sigprint(); 00680 00681 Col<out_eT> out( in.size() ); 00682 00683 typename std::vector<in_eT>::const_iterator in_begin = in.begin(); 00684 typename std::vector<in_eT>::const_iterator in_end = in.end(); 00685 00686 typename Col<out_eT>::iterator out_begin = out.begin(); 00687 typename Col<out_eT>::iterator out_end = out.end(); 00688 00689 typename std::vector<in_eT>::const_iterator in_it; 00690 typename Col<out_eT>::iterator out_it; 00691 00692 for(in_it = in_begin, out_it = out_begin; (in_it != in_end) && (out_it != out_end); ++in_it, ++out_it) 00693 { 00694 out_eT& out_elem = (*out_it); 00695 const in_eT& in_elem = (*in_it); 00696 00697 syslib::convert_cx_scalar(out_elem, in_elem); 00698 } 00699 00700 return out; 00701 }
Col< out_eT > conv_to< Col< out_eT > >::from | ( | const itpp::Mat< in_eT > & | in, | |
const typename arma_not_cx< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 709 of file fn_conv_to.hpp.
References syslib::copy_and_convert_elem().
00710 { 00711 arma_extra_debug_sigprint(); 00712 00713 const bool is_vec = ( (in.rows() == 1) || (in.cols() == 1) ); 00714 00715 arma_debug_check( (is_vec == false), "conv_to(): given object can't be interpreted as a vector" ); 00716 00717 Col<out_eT> out(in.rows() * in.cols()); 00718 00719 syslib::copy_and_convert_elem( out.memptr(), in._data(), out.n_elem ); 00720 00721 return out; 00722 }
Col< out_eT > conv_to< Col< out_eT > >::from | ( | const itpp::Mat< in_eT > & | in, | |
const typename arma_cx_only< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 730 of file fn_conv_to.hpp.
References syslib::copy_and_convert_cx_elem().
00731 { 00732 arma_extra_debug_sigprint(); 00733 00734 const bool is_vec = ( (in.rows() == 1) || (in.cols() == 1) ); 00735 00736 Col<out_eT> out(in.rows() * in.cols()); 00737 00738 syslib::copy_and_convert_cx_elem( out.memptr(), in._data(), out.n_elem ); 00739 00740 return out; 00741 }
Col< out_eT > conv_to< Col< out_eT > >::from | ( | const itpp::Vec< in_eT > & | in, | |
const typename arma_not_cx< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 749 of file fn_conv_to.hpp.
References syslib::copy_and_convert_elem().
00750 { 00751 arma_extra_debug_sigprint(); 00752 00753 Col<out_eT> out( in.length() ); 00754 00755 syslib::copy_and_convert_elem( out.memptr(), in._data(), out.n_elem ); 00756 00757 return out; 00758 }
Col< out_eT > conv_to< Col< out_eT > >::from | ( | const itpp::Vec< in_eT > & | in, | |
const typename arma_cx_only< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 766 of file fn_conv_to.hpp.
References syslib::copy_and_convert_cx_elem().
00767 { 00768 arma_extra_debug_sigprint(); 00769 00770 Col<out_eT> out( in.length() ); 00771 00772 syslib::copy_and_convert_cx_elem( out.memptr(), in._data(), out.n_elem ); 00773 00774 return out; 00775 }
Cube< out_eT > conv_to< Cube< out_eT > >::from | ( | const BaseCube< in_eT, T1 > & | in, | |
const typename arma_not_cx< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 798 of file fn_conv_to.hpp.
References syslib::copy_and_convert_elem(), Cube< eT >::memptr(), and Cube< eT >::n_elem.
00799 { 00800 arma_extra_debug_sigprint(); 00801 00802 const unwrap_cube<T1> tmp( in.get_ref() ); 00803 const Cube<in_eT>& X = tmp.M; 00804 00805 Cube<out_eT> out(X.n_rows, X.n_cols, X.n_slices); 00806 00807 syslib::copy_and_convert_elem( out.memptr(), X.memptr(), out.n_elem ); 00808 00809 return out; 00810 }
Cube< out_eT > conv_to< Cube< out_eT > >::from | ( | const BaseCube< in_eT, T1 > & | in, | |
const typename arma_cx_only< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 818 of file fn_conv_to.hpp.
References syslib::copy_and_convert_cx_elem(), Cube< eT >::memptr(), and Cube< eT >::n_elem.
00819 { 00820 arma_extra_debug_sigprint(); 00821 00822 const unwrap_cube<T1> tmp( in.get_ref() ); 00823 const Cube<in_eT>& X = tmp.M; 00824 00825 Cube<out_eT> out(X.n_rows, X.n_cols, X.n_slices); 00826 00827 syslib::copy_and_convert_cx_elem( out.memptr(), X.memptr(), out.n_elem ); 00828 00829 return out; 00830 }
std::vector< out_eT > conv_to< std::vector< out_eT > >::from | ( | const Base< in_eT, T1 > & | in, | |
const typename arma_not_cx< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 853 of file fn_conv_to.hpp.
00854 { 00855 arma_extra_debug_sigprint(); 00856 00857 const unwrap<T1> tmp(in.get_ref()); 00858 const Mat<in_eT>& X = tmp.M; 00859 00860 arma_debug_check( (X.is_vec() == false), "conv_to(): given object can't be interpreted as a vector" ); 00861 00862 std::vector<out_eT> out(X.n_elem); 00863 00864 typename Mat<in_eT>::const_iterator X_begin = X.begin(); 00865 typename Mat<in_eT>::const_iterator X_end = X.end(); 00866 00867 typename std::vector<out_eT>::iterator out_begin = out.begin(); 00868 typename std::vector<out_eT>::iterator out_end = out.end(); 00869 00870 typename Mat<in_eT>::const_iterator X_it; 00871 typename std::vector<out_eT>::iterator out_it; 00872 00873 for(X_it = X_begin, out_it = out_begin; (X_it != X_end) && (out_it != out_end); ++X_it, ++out_it) 00874 { 00875 (*out_it) = out_eT(*X_it); 00876 } 00877 00878 return out; 00879 }
std::vector< out_eT > conv_to< std::vector< out_eT > >::from | ( | const Base< in_eT, T1 > & | in, | |
const typename arma_cx_only< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 887 of file fn_conv_to.hpp.
References syslib::convert_cx_scalar().
00888 { 00889 arma_extra_debug_sigprint(); 00890 00891 const unwrap<T1> tmp(in.get_ref()); 00892 const Mat<in_eT>& X = tmp.M; 00893 00894 arma_debug_check( (X.is_vec() == false), "conv_to(): given object can't be interpreted as a vector" ); 00895 00896 std::vector<out_eT> out(X.n_elem); 00897 00898 typename Mat<in_eT>::const_iterator X_begin = X.begin(); 00899 typename Mat<in_eT>::const_iterator X_end = X.end(); 00900 00901 typename std::vector<out_eT>::iterator out_begin = out.begin(); 00902 typename std::vector<out_eT>::iterator out_end = out.end(); 00903 00904 typename Mat<in_eT>::const_iterator X_it; 00905 typename std::vector<out_eT>::iterator out_it; 00906 00907 for(X_it = X_begin, out_it = out_begin; (X_it != X_end) && (out_it != out_end); ++X_it, ++out_it) 00908 { 00909 out_eT& out_elem = (*out_it); 00910 const in_eT& X_elem = (*X_it); 00911 00912 syslib::convert_cx_scalar(out_elem, X_elem); 00913 } 00914 00915 return out; 00916 }
itpp::Mat< out_eT > conv_to< itpp::Mat< out_eT > >::from | ( | const Base< in_eT, T1 > & | in, | |
const typename arma_not_cx< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 939 of file fn_conv_to.hpp.
References itpp::Mat< eT >::_data(), and syslib::copy_and_convert_elem().
00940 { 00941 arma_extra_debug_sigprint(); 00942 00943 const unwrap<T1> tmp( in.get_ref() ); 00944 const Mat<in_eT>& X = tmp.M; 00945 00946 itpp::Mat<out_eT> out(X.n_rows, X.n_cols); 00947 00948 syslib::copy_and_convert_elem( out._data(), X.memptr(), X.n_elem ); 00949 00950 return out; 00951 }
itpp::Mat< out_eT > conv_to< itpp::Mat< out_eT > >::from | ( | const Base< in_eT, T1 > & | in, | |
const typename arma_cx_only< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 959 of file fn_conv_to.hpp.
References itpp::Mat< eT >::_data(), and syslib::copy_and_convert_cx_elem().
00960 { 00961 arma_extra_debug_sigprint(); 00962 00963 const unwrap<T1> tmp( in.get_ref() ); 00964 const Mat<in_eT>& X = tmp.M; 00965 00966 itpp::Mat<out_eT> out(X.n_rows, X.n_cols); 00967 00968 syslib::copy_and_convert_cx_elem( out._data(), X.memptr(), X.n_elem ); 00969 00970 return out; 00971 }
itpp::Vec< out_eT > conv_to< itpp::Vec< out_eT > >::from | ( | const Base< in_eT, T1 > & | in, | |
const typename arma_not_cx< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 995 of file fn_conv_to.hpp.
References itpp::Vec< eT >::_data(), and syslib::copy_and_convert_elem().
00996 { 00997 arma_extra_debug_sigprint(); 00998 00999 const unwrap<T1> tmp( in.get_ref() ); 01000 const Mat<in_eT>& X = tmp.M; 01001 01002 arma_debug_check( (X.is_vec() == false), "conv_to(): given object can't be interpreted as a vector" ); 01003 01004 itpp::Vec<out_eT> out(X.n_elem); 01005 01006 syslib::copy_and_convert_elem( out._data(), X.memptr(), X.n_elem ); 01007 01008 return out; 01009 }
itpp::Vec< out_eT > conv_to< itpp::Vec< out_eT > >::from | ( | const Base< in_eT, T1 > & | in, | |
const typename arma_cx_only< in_eT >::result * | junk = 0 | |||
) | [inline, static, inherited] |
Definition at line 1017 of file fn_conv_to.hpp.
References itpp::Vec< eT >::_data(), and syslib::copy_and_convert_cx_elem().
01018 { 01019 arma_extra_debug_sigprint(); 01020 01021 const unwrap<T1> tmp( in.get_ref() ); 01022 const Mat<in_eT>& X = tmp.M; 01023 01024 itpp::Vec<out_eT> out(X.n_elem); 01025 01026 syslib::copy_and_convert_cx_elem( out._data(), X.memptr(), X.n_elem ); 01027 01028 return out; 01029 }