Classes | |
class | conv_to< out_eT > |
class | conv_to< Mat< out_eT > > |
class | conv_to< Row< out_eT > > |
class | conv_to< Col< out_eT > > |
class | conv_to< itpp::Mat< out_eT > > |
class | conv_to< itpp::Vec< out_eT > > |
Functions | |
template<typename out_eT , typename in_eT > | |
void | copy_complex_elem (out_eT &out, const in_eT &in) |
template<typename out_eT , typename in_T > | |
void | copy_complex_elem (out_eT &out, const std::complex< in_T > &in) |
template<typename out_T , typename in_T > | |
void | copy_complex_elem (std::complex< out_T > &out, const std::complex< in_T > &in) |
static out_eT | conv_to::from (const Mat< out_eT > &in) |
template<typename in_eT > | |
static out_eT | conv_to::from (const Mat< in_eT > &in) |
template<typename in_eT , typename T1 > | |
static out_eT | conv_to::from (const Base< in_eT, T1 > &in) |
template<typename in_eT > | |
static Mat< out_eT > | conv_to< Mat< out_eT > >::from (const Mat< in_eT > &in) |
template<typename in_T > | |
static Mat< out_eT > | conv_to< Mat< out_eT > >::from (const Mat< std::complex< in_T > > &in) |
template<typename in_eT , typename T1 > | |
static Mat< out_eT > | conv_to< Mat< out_eT > >::from (const Base< in_eT, T1 > &in) |
template<typename in_eT > | |
static Mat< out_eT > | conv_to< Mat< out_eT > >::from (const itpp::Mat< in_eT > &in) |
template<typename in_T > | |
static Mat< out_eT > | conv_to< Mat< out_eT > >::from (const itpp::Mat< std::complex< in_T > > &in) |
static Row< out_eT > | conv_to< Row< out_eT > >::from (const Mat< out_eT > &in) |
template<typename in_eT > | |
static Row< out_eT > | conv_to< Row< out_eT > >::from (const Mat< in_eT > &in) |
template<typename in_T > | |
static Row< out_eT > | conv_to< Row< out_eT > >::from (const Mat< std::complex< in_T > > &in) |
template<typename in_eT , typename T1 > | |
static Row< out_eT > | conv_to< Row< out_eT > >::from (const Base< in_eT, T1 > &in) |
template<typename in_eT > | |
static Row< out_eT > | conv_to< Row< out_eT > >::from (const itpp::Vec< in_eT > &in) |
template<typename in_T > | |
static Row< out_eT > | conv_to< Row< out_eT > >::from (const itpp::Vec< std::complex< in_T > > &in) |
static Col< out_eT > | conv_to< Col< out_eT > >::from (const Mat< out_eT > &in) |
template<typename in_eT > | |
static Col< out_eT > | conv_to< Col< out_eT > >::from (const Mat< in_eT > &in) |
template<typename in_T > | |
static Col< out_eT > | conv_to< Col< out_eT > >::from (const Mat< std::complex< in_T > > &in) |
template<typename in_eT , typename T1 > | |
static Col< out_eT > | conv_to< Col< out_eT > >::from (const Base< in_eT, T1 > &in) |
template<typename in_eT > | |
static Col< out_eT > | conv_to< Col< out_eT > >::from (const itpp::Vec< in_eT > &in) |
template<typename in_T > | |
static Col< out_eT > | conv_to< Col< out_eT > >::from (const itpp::Vec< std::complex< in_T > > &in) |
static itpp::Mat< out_eT > | conv_to< itpp::Mat< out_eT > >::from (const Mat< out_eT > &in) |
static itpp::Mat< out_eT > | conv_to< itpp::Mat< out_eT > >::from (const Col< out_eT > &in) |
static itpp::Mat< out_eT > | conv_to< itpp::Mat< out_eT > >::from (const Row< out_eT > &in) |
template<typename in_eT > | |
static itpp::Mat< out_eT > | conv_to< itpp::Mat< out_eT > >::from (const Mat< in_eT > &in) |
template<typename in_eT > | |
static itpp::Mat< out_eT > | conv_to< itpp::Mat< out_eT > >::from (const Col< in_eT > &in) |
template<typename in_eT > | |
static itpp::Mat< out_eT > | conv_to< itpp::Mat< out_eT > >::from (const Row< in_eT > &in) |
template<typename in_T > | |
static itpp::Mat< out_eT > | conv_to< itpp::Mat< out_eT > >::from (const Mat< std::complex< in_T > > &in) |
template<typename in_T > | |
static itpp::Mat< out_eT > | conv_to< itpp::Mat< out_eT > >::from (const Col< std::complex< in_T > > &in) |
template<typename in_T > | |
static itpp::Mat< out_eT > | conv_to< itpp::Mat< out_eT > >::from (const Row< std::complex< in_T > > &in) |
template<typename in_eT , typename T1 > | |
static itpp::Mat< out_eT > | conv_to< itpp::Mat< out_eT > >::from (const Base< in_eT, T1 > &in) |
static itpp::Vec< out_eT > | conv_to< itpp::Vec< out_eT > >::from (const Mat< out_eT > &in) |
template<typename in_eT > | |
static itpp::Vec< out_eT > | conv_to< itpp::Vec< out_eT > >::from (const Mat< in_eT > &in) |
template<typename in_T > | |
static itpp::Vec< out_eT > | conv_to< itpp::Vec< out_eT > >::from (const Mat< std::complex< in_T > > &in) |
template<typename in_eT > | |
static itpp::Vec< out_eT > | conv_to< itpp::Vec< out_eT > >::from (const Col< in_eT > &in) |
template<typename in_T > | |
static itpp::Vec< out_eT > | conv_to< itpp::Vec< out_eT > >::from (const Col< std::complex< in_T > > &in) |
template<typename in_eT > | |
static itpp::Vec< out_eT > | conv_to< itpp::Vec< out_eT > >::from (const Row< in_eT > &in) |
template<typename in_T > | |
static itpp::Vec< out_eT > | conv_to< itpp::Vec< out_eT > >::from (const Row< std::complex< in_T > > &in) |
template<typename in_eT , typename T1 > | |
static itpp::Vec< out_eT > | conv_to< itpp::Vec< out_eT > >::from (const Base< in_eT, T1 > &in) |
void copy_complex_elem | ( | out_eT & | out, | |
const in_eT & | in | |||
) | [inline] |
Definition at line 27 of file fn_conv_to.hpp.
Referenced by conv_to< itpp::Vec< out_eT > >::from(), conv_to< itpp::Mat< out_eT > >::from(), conv_to< Col< out_eT > >::from(), conv_to< Row< out_eT > >::from(), conv_to< Mat< out_eT > >::from(), and conv_to< out_eT >::from().
void copy_complex_elem | ( | out_eT & | out, | |
const std::complex< in_T > & | in | |||
) | [inline] |
void copy_complex_elem | ( | std::complex< out_T > & | out, | |
const std::complex< in_T > & | in | |||
) | [inline] |
Definition at line 51 of file fn_conv_to.hpp.
00052 { 00053 //arma_extra_debug_sigprint(); 00054 00055 typedef std::complex<out_T> out_eT; 00056 out = out_eT(in); 00057 }
out_eT conv_to< out_eT >::from | ( | const Mat< out_eT > & | in | ) | [inline, static, inherited] |
Definition at line 84 of file fn_conv_to.hpp.
References Mat< eT >::mem, and Mat< eT >::n_elem.
Referenced by conv_to< out_eT >::from().
00085 { 00086 arma_extra_debug_sigprint(); 00087 00088 arma_debug_check( (in.n_elem != 1), "conv_to<>: matrix doesn't have exactly one element" ); 00089 00090 return in.mem[0]; 00091 }
out_eT conv_to< out_eT >::from | ( | const Mat< in_eT > & | in | ) | [inline, static, inherited] |
Definition at line 99 of file fn_conv_to.hpp.
References copy_complex_elem(), Mat< eT >::mem, and Mat< eT >::n_elem.
00100 { 00101 arma_extra_debug_sigprint(); 00102 00103 arma_type_check< is_supported_elem_type<out_eT>::value == false >::apply(); 00104 00105 arma_debug_check( (in.n_elem != 1), "conv_to<>: matrix doesn't have exactly one element" ); 00106 00107 out_eT out; 00108 copy_complex_elem(out, in.mem[0]); 00109 00110 return out; 00111 }
out_eT conv_to< out_eT >::from | ( | const Base< in_eT, T1 > & | in | ) | [inline, static, inherited] |
Definition at line 119 of file fn_conv_to.hpp.
References conv_to< out_eT >::from(), and Base< elem_type, derived >::get_ref().
00120 { 00121 arma_extra_debug_sigprint(); 00122 00123 arma_type_check< is_supported_elem_type<out_eT>::value == false >::apply(); 00124 00125 const unwrap<T1> tmp(in.get_ref()); 00126 00127 return conv_to<out_eT>::from( tmp.M ); 00128 }
Mat< out_eT > conv_to< Mat< out_eT > >::from | ( | const Mat< in_eT > & | in | ) | [inline, static, inherited] |
Definition at line 172 of file fn_conv_to.hpp.
References Mat< eT >::memptr(), and Mat< eT >::n_elem.
00173 { 00174 arma_extra_debug_sigprint(); 00175 00176 Mat<out_eT> out(in.n_rows, in.n_cols); 00177 00178 const in_eT* in_mem = in.mem; 00179 out_eT* out_mem = out.memptr(); 00180 00181 for(u32 i=0; i<out.n_elem; ++i) 00182 { 00183 out_mem[i] = out_eT( in_mem[i] ); 00184 } 00185 00186 return out; 00187 }
Mat< out_eT > conv_to< Mat< out_eT > >::from | ( | const Mat< std::complex< in_T > > & | in | ) | [inline, static, inherited] |
Definition at line 195 of file fn_conv_to.hpp.
References copy_complex_elem(), Mat< eT >::memptr(), and Mat< eT >::n_elem.
00196 { 00197 arma_extra_debug_sigprint(); 00198 00199 typedef std::complex<in_T> in_eT; 00200 00201 Mat<out_eT> out(in.n_rows, in.n_cols); 00202 00203 const in_eT* in_mem = in.mem; 00204 out_eT* out_mem = out.memptr(); 00205 00206 for(u32 i=0; i<out.n_elem; ++i) 00207 { 00208 copy_complex_elem(out_mem[i], in_mem[i]); 00209 } 00210 00211 return out; 00212 }
Mat< out_eT > conv_to< Mat< out_eT > >::from | ( | const Base< in_eT, T1 > & | in | ) | [inline, static, inherited] |
Definition at line 220 of file fn_conv_to.hpp.
00221 { 00222 arma_extra_debug_sigprint(); 00223 00224 const unwrap<T1> tmp(in.get_ref()); 00225 00226 return conv_to< Mat<out_eT> >::from( tmp.M ); 00227 }
Mat< out_eT > conv_to< Mat< out_eT > >::from | ( | const itpp::Mat< in_eT > & | in | ) | [inline, static, inherited] |
Definition at line 235 of file fn_conv_to.hpp.
00236 { 00237 arma_extra_debug_sigprint(); 00238 00239 Mat<out_eT> out(in.rows(), in.cols()); 00240 00241 const in_eT* in_mem = in._data(); 00242 out_eT* out_mem = out.memptr(); 00243 00244 for(u32 i=0; i<out.n_elem; ++i) 00245 { 00246 out_mem[i] = out_eT( in_mem[i] ); 00247 } 00248 00249 return out; 00250 }
Mat< out_eT > conv_to< Mat< out_eT > >::from | ( | const itpp::Mat< std::complex< in_T > > & | in | ) | [inline, static, inherited] |
Definition at line 258 of file fn_conv_to.hpp.
References copy_complex_elem().
00259 { 00260 arma_extra_debug_sigprint(); 00261 00262 typedef std::complex<in_T> in_eT; 00263 00264 Mat<out_eT> out(in.rows(), in.cols()); 00265 00266 const in_eT* in_mem = in._data(); 00267 out_eT* out_mem = out.memptr(); 00268 00269 for(u32 i=0; i<out.n_elem; ++i) 00270 { 00271 copy_complex_elem(out_mem[i], in_mem[i]); 00272 } 00273 00274 return out; 00275 }
Row< out_eT > conv_to< Row< out_eT > >::from | ( | const Mat< out_eT > & | in | ) | [inline, static, inherited] |
Definition at line 318 of file fn_conv_to.hpp.
References syslib::copy_elem(), Mat< eT >::memptr(), and Mat< eT >::n_elem.
00319 { 00320 arma_extra_debug_sigprint(); 00321 00322 arma_debug_check( (in.n_rows > 1), "conv_to<>: given matrix has more than one row"); 00323 Row<out_eT> out(in.n_cols); 00324 00325 syslib::copy_elem(out.memptr(), in.mem, out.n_elem); 00326 00327 00328 return out; 00329 }
Row< out_eT > conv_to< Row< out_eT > >::from | ( | const Mat< in_eT > & | in | ) | [inline, static, inherited] |
Definition at line 337 of file fn_conv_to.hpp.
References Mat< eT >::memptr(), and Mat< eT >::n_elem.
00338 { 00339 arma_extra_debug_sigprint(); 00340 00341 arma_debug_check( (in.n_rows > 1), "conv_to<>: given matrix has more than one row"); 00342 Row<out_eT> out(in.n_cols); 00343 00344 const in_eT* in_mem = in.mem; 00345 out_eT* out_mem = out.memptr(); 00346 00347 for(u32 i=0; i<out.n_elem; ++i) 00348 { 00349 out_mem[i] = out_eT( in_mem[i] ); 00350 } 00351 00352 return out; 00353 }
Row< out_eT > conv_to< Row< out_eT > >::from | ( | const Mat< std::complex< in_T > > & | in | ) | [inline, static, inherited] |
Definition at line 361 of file fn_conv_to.hpp.
References copy_complex_elem(), Mat< eT >::memptr(), and Mat< eT >::n_elem.
00362 { 00363 arma_extra_debug_sigprint(); 00364 00365 typedef std::complex<in_T> in_eT; 00366 00367 arma_debug_check( (in.n_rows > 1), "conv_to<>: given matrix has more than one row"); 00368 Row<out_eT> out(in.n_cols); 00369 00370 const in_eT* in_mem = in.mem; 00371 out_eT* out_mem = out.memptr(); 00372 00373 for(u32 i=0; i<out.n_elem; ++i) 00374 { 00375 copy_complex_elem(out_mem[i], in_mem[i]); 00376 } 00377 00378 return out; 00379 }
Row< out_eT > conv_to< Row< out_eT > >::from | ( | const Base< in_eT, T1 > & | in | ) | [inline, static, inherited] |
Definition at line 387 of file fn_conv_to.hpp.
00388 { 00389 arma_extra_debug_sigprint(); 00390 00391 const unwrap<T1> tmp(in.get_ref()); 00392 00393 return conv_to< Row<out_eT> >::from( tmp.M ); 00394 }
Row< out_eT > conv_to< Row< out_eT > >::from | ( | const itpp::Vec< in_eT > & | in | ) | [inline, static, inherited] |
Definition at line 402 of file fn_conv_to.hpp.
00403 { 00404 arma_extra_debug_sigprint(); 00405 00406 Row<out_eT> out(in.length()); 00407 00408 const in_eT* in_mem = in._data(); 00409 out_eT* out_mem = out.memptr(); 00410 00411 for(u32 i=0; i<out.n_elem; ++i) 00412 { 00413 out_mem[i] = out_eT( in_mem[i] ); 00414 } 00415 00416 return out; 00417 }
Row< out_eT > conv_to< Row< out_eT > >::from | ( | const itpp::Vec< std::complex< in_T > > & | in | ) | [inline, static, inherited] |
Definition at line 425 of file fn_conv_to.hpp.
References copy_complex_elem().
00426 { 00427 arma_extra_debug_sigprint(); 00428 00429 typedef std::complex<in_T> in_eT; 00430 00431 Row<out_eT> out(in.length()); 00432 00433 const in_eT* in_mem = in._data(); 00434 out_eT* out_mem = out.memptr(); 00435 00436 for(u32 i=0; i<out.n_elem; ++i) 00437 { 00438 copy_complex_elem(out_mem[i], in_mem[i]); 00439 } 00440 00441 return out; 00442 }
Col< out_eT > conv_to< Col< out_eT > >::from | ( | const Mat< out_eT > & | in | ) | [inline, static, inherited] |
Definition at line 545 of file fn_conv_to.hpp.
References syslib::copy_elem(), Mat< eT >::memptr(), and Mat< eT >::n_elem.
00546 { 00547 arma_extra_debug_sigprint(); 00548 00549 arma_debug_check( (in.n_cols > 1), "conv_to<>: given matrix has more than one column"); 00550 Col<out_eT> out(in.n_rows); 00551 00552 syslib::copy_elem(out.memptr(), in.mem, out.n_elem); 00553 00554 return out; 00555 }
Col< out_eT > conv_to< Col< out_eT > >::from | ( | const Mat< in_eT > & | in | ) | [inline, static, inherited] |
Definition at line 563 of file fn_conv_to.hpp.
References Mat< eT >::memptr(), and Mat< eT >::n_elem.
00564 { 00565 arma_extra_debug_sigprint(); 00566 00567 arma_debug_check( (in.n_cols > 1), "conv_to<>: given matrix has more than one column"); 00568 Col<out_eT> out(in.n_rows); 00569 00570 const in_eT* in_mem = in.mem; 00571 out_eT* out_mem = out.memptr(); 00572 00573 for(u32 i=0; i<out.n_elem; ++i) 00574 { 00575 out_mem[i] = out_eT( in_mem[i] ); 00576 } 00577 00578 return out; 00579 }
Col< out_eT > conv_to< Col< out_eT > >::from | ( | const Mat< std::complex< in_T > > & | in | ) | [inline, static, inherited] |
Definition at line 587 of file fn_conv_to.hpp.
References copy_complex_elem(), Mat< eT >::memptr(), and Mat< eT >::n_elem.
00588 { 00589 arma_extra_debug_sigprint(); 00590 00591 typedef std::complex<in_T> in_eT; 00592 00593 arma_debug_check( (in.n_cols > 1), "conv_to<>: given matrix has more than one column"); 00594 Col<out_eT> out(in.n_rows); 00595 00596 const in_eT* in_mem = in.mem; 00597 out_eT* out_mem = out.memptr(); 00598 00599 for(u32 i=0; i<out.n_elem; ++i) 00600 { 00601 copy_complex_elem(out_mem[i], in_mem[i]); 00602 } 00603 00604 return out; 00605 }
Col< out_eT > conv_to< Col< out_eT > >::from | ( | const Base< in_eT, T1 > & | in | ) | [inline, static, inherited] |
Definition at line 613 of file fn_conv_to.hpp.
00614 { 00615 arma_extra_debug_sigprint(); 00616 00617 const unwrap<T1> tmp(in.get_ref()); 00618 00619 return conv_to< Col<out_eT> >::from( tmp.M ); 00620 }
Col< out_eT > conv_to< Col< out_eT > >::from | ( | const itpp::Vec< in_eT > & | in | ) | [inline, static, inherited] |
Definition at line 628 of file fn_conv_to.hpp.
00629 { 00630 arma_extra_debug_sigprint(); 00631 00632 Col<out_eT> out(in.length()); 00633 00634 const in_eT* in_mem = in._data(); 00635 out_eT* out_mem = out.memptr(); 00636 00637 for(u32 i=0; i<out.n_elem; ++i) 00638 { 00639 out_mem[i] = out_eT( in_mem[i] ); 00640 } 00641 00642 return out; 00643 }
Col< out_eT > conv_to< Col< out_eT > >::from | ( | const itpp::Vec< std::complex< in_T > > & | in | ) | [inline, static, inherited] |
Definition at line 651 of file fn_conv_to.hpp.
References copy_complex_elem().
00652 { 00653 arma_extra_debug_sigprint(); 00654 00655 typedef std::complex<in_T> in_eT; 00656 00657 Col<out_eT> out(in.length()); 00658 00659 const in_eT* in_mem = in._data(); 00660 out_eT* out_mem = out.memptr(); 00661 00662 for(u32 i=0; i<out.n_elem; ++i) 00663 { 00664 copy_complex_elem(out_mem[i], in_mem[i]); 00665 } 00666 00667 return out; 00668 }
itpp::Mat< out_eT > conv_to< itpp::Mat< out_eT > >::from | ( | const Mat< out_eT > & | in | ) | [inline, static, inherited] |
Definition at line 779 of file fn_conv_to.hpp.
References itpp::Mat< eT >::_data(), and syslib::copy_elem().
00780 { 00781 arma_extra_debug_sigprint(); 00782 00783 itpp::Mat<out_eT> out(in.n_rows, in.n_cols); 00784 00785 syslib::copy_elem(out._data(), in.mem, in.n_elem); 00786 00787 return out; 00788 }
itpp::Mat< out_eT > conv_to< itpp::Mat< out_eT > >::from | ( | const Col< out_eT > & | in | ) | [inline, static, inherited] |
Definition at line 795 of file fn_conv_to.hpp.
00796 { 00797 arma_extra_debug_sigprint(); 00798 00799 return conv_to< itpp::Mat<out_eT> >::from( reinterpret_cast<const Mat<out_eT>& >(in) ); 00800 }
itpp::Mat< out_eT > conv_to< itpp::Mat< out_eT > >::from | ( | const Row< out_eT > & | in | ) | [inline, static, inherited] |
Definition at line 807 of file fn_conv_to.hpp.
00808 { 00809 arma_extra_debug_sigprint(); 00810 00811 return conv_to< itpp::Mat<out_eT> >::from( reinterpret_cast<const Mat<out_eT>& >(in) ); 00812 }
itpp::Mat< out_eT > conv_to< itpp::Mat< out_eT > >::from | ( | const Mat< in_eT > & | in | ) | [inline, static, inherited] |
Definition at line 820 of file fn_conv_to.hpp.
References itpp::Mat< eT >::_data().
00821 { 00822 arma_extra_debug_sigprint(); 00823 00824 itpp::Mat<out_eT> out(in.n_rows, in.n_cols); 00825 00826 const in_eT* in_mem = in.memptr(); 00827 out_eT* out_mem = out._data(); 00828 00829 for(u32 i=0; i<in.n_elem; ++i) 00830 { 00831 out_mem[i] = out_eT( in_mem[i] ); 00832 } 00833 00834 return out; 00835 }
itpp::Mat< out_eT > conv_to< itpp::Mat< out_eT > >::from | ( | const Col< in_eT > & | in | ) | [inline, static, inherited] |
Definition at line 843 of file fn_conv_to.hpp.
00844 { 00845 arma_extra_debug_sigprint(); 00846 00847 return conv_to< itpp::Mat<out_eT> >::from( reinterpret_cast<const Mat<in_eT>& >(in) ); 00848 }
itpp::Mat< out_eT > conv_to< itpp::Mat< out_eT > >::from | ( | const Row< in_eT > & | in | ) | [inline, static, inherited] |
Definition at line 856 of file fn_conv_to.hpp.
00857 { 00858 arma_extra_debug_sigprint(); 00859 00860 return conv_to< itpp::Mat<out_eT> >::from( reinterpret_cast<const Mat<in_eT>& >(in) ); 00861 }
itpp::Mat< out_eT > conv_to< itpp::Mat< out_eT > >::from | ( | const Mat< std::complex< in_T > > & | in | ) | [inline, static, inherited] |
Definition at line 869 of file fn_conv_to.hpp.
References itpp::Mat< eT >::_data(), and copy_complex_elem().
00870 { 00871 arma_extra_debug_sigprint(); 00872 00873 typedef std::complex<in_T> in_eT; 00874 00875 itpp::Mat<out_eT> out(in.n_rows, in.n_cols); 00876 00877 const in_eT* in_mem = in.memptr(); 00878 out_eT* out_mem = out._data(); 00879 00880 for(u32 i=0; i<in.n_elem; ++i) 00881 { 00882 copy_complex_elem(out_mem[i], in_mem[i]); 00883 } 00884 00885 return out; 00886 }
itpp::Mat< out_eT > conv_to< itpp::Mat< out_eT > >::from | ( | const Col< std::complex< in_T > > & | in | ) | [inline, static, inherited] |
Definition at line 894 of file fn_conv_to.hpp.
00895 { 00896 arma_extra_debug_sigprint(); 00897 00898 return conv_to< itpp::Mat<out_eT> >::from( reinterpret_cast<const Mat< std::complex<in_T> >& >(in) ); 00899 }
itpp::Mat< out_eT > conv_to< itpp::Mat< out_eT > >::from | ( | const Row< std::complex< in_T > > & | in | ) | [inline, static, inherited] |
Definition at line 907 of file fn_conv_to.hpp.
00908 { 00909 arma_extra_debug_sigprint(); 00910 00911 return conv_to< itpp::Mat<out_eT> >::from( reinterpret_cast<const Mat< std::complex<in_T> >& >(in) ); 00912 }
itpp::Mat< out_eT > conv_to< itpp::Mat< out_eT > >::from | ( | const Base< in_eT, T1 > & | in | ) | [inline, static, inherited] |
Definition at line 920 of file fn_conv_to.hpp.
00921 { 00922 arma_extra_debug_sigprint(); 00923 00924 const unwrap<T1> tmp(in.get_ref()); 00925 00926 return conv_to< itpp::Mat<out_eT> >::from( tmp.M ); 00927 }
itpp::Vec< out_eT > conv_to< itpp::Vec< out_eT > >::from | ( | const Mat< out_eT > & | in | ) | [inline, static, inherited] |
Definition at line 975 of file fn_conv_to.hpp.
References itpp::Vec< eT >::_data(), and syslib::copy_elem().
00976 { 00977 arma_extra_debug_sigprint(); 00978 00979 arma_debug_check( ( (in.n_cols != 1) && (in.n_rows != 1) ), "conv_to<>: given matrix can't be interpreted as a vector"); 00980 00981 itpp::Vec<out_eT> out(in.n_elem); 00982 00983 syslib::copy_elem(out._data(), in.mem, in.n_elem); 00984 00985 return out; 00986 }
itpp::Vec< out_eT > conv_to< itpp::Vec< out_eT > >::from | ( | const Mat< in_eT > & | in | ) | [inline, static, inherited] |
Definition at line 994 of file fn_conv_to.hpp.
References itpp::Vec< eT >::_data().
00995 { 00996 arma_extra_debug_sigprint(); 00997 00998 arma_debug_check( ( (in.n_cols != 1) && (in.n_rows != 1) ), "conv_to<>: given matrix can't be interpreted as a vector"); 00999 itpp::Vec<out_eT> out(in.n_elem); 01000 01001 const in_eT* in_mem = in.memptr(); 01002 out_eT* out_mem = out._data(); 01003 01004 for(u32 i=0; i<in.n_elem; ++i) 01005 { 01006 out_mem[i] = out_eT( in_mem[i] ); 01007 } 01008 01009 return out; 01010 }
itpp::Vec< out_eT > conv_to< itpp::Vec< out_eT > >::from | ( | const Mat< std::complex< in_T > > & | in | ) | [inline, static, inherited] |
Definition at line 1018 of file fn_conv_to.hpp.
References itpp::Vec< eT >::_data(), and copy_complex_elem().
01019 { 01020 arma_extra_debug_sigprint(); 01021 01022 typedef std::complex<in_T> in_eT; 01023 01024 arma_debug_check( ( (in.n_cols != 1) && (in.n_rows != 1) ), "conv_to<>: given matrix can't be interpreted as a vector"); 01025 01026 itpp::Vec<out_eT> out(in.n_elem); 01027 01028 const in_eT* in_mem = in.memptr(); 01029 out_eT* out_mem = out._data(); 01030 01031 for(u32 i=0; i<in.n_elem; ++i) 01032 { 01033 copy_complex_elem(out_mem[i], in_mem[i]); 01034 } 01035 01036 return out; 01037 }
itpp::Vec< out_eT > conv_to< itpp::Vec< out_eT > >::from | ( | const Col< in_eT > & | in | ) | [inline, static, inherited] |
Definition at line 1045 of file fn_conv_to.hpp.
References itpp::Vec< eT >::_data().
01046 { 01047 arma_extra_debug_sigprint(); 01048 01049 itpp::Vec<out_eT> out(in.n_elem); 01050 01051 const in_eT* in_mem = in.memptr(); 01052 out_eT* out_mem = out._data(); 01053 01054 for(u32 i=0; i<in.n_elem; ++i) 01055 { 01056 out_mem[i] = out_eT( in_mem[i] ); 01057 } 01058 01059 return out; 01060 }
itpp::Vec< out_eT > conv_to< itpp::Vec< out_eT > >::from | ( | const Col< std::complex< in_T > > & | in | ) | [inline, static, inherited] |
Definition at line 1068 of file fn_conv_to.hpp.
References itpp::Vec< eT >::_data(), and copy_complex_elem().
01069 { 01070 arma_extra_debug_sigprint(); 01071 01072 typedef std::complex<in_T> in_eT; 01073 01074 itpp::Vec<out_eT> out(in.n_elem); 01075 01076 const in_eT* in_mem = in.memptr(); 01077 out_eT* out_mem = out._data(); 01078 01079 for(u32 i=0; i<in.n_elem; ++i) 01080 { 01081 copy_complex_elem(out_mem[i], in_mem[i]); 01082 } 01083 01084 return out; 01085 }
itpp::Vec< out_eT > conv_to< itpp::Vec< out_eT > >::from | ( | const Row< in_eT > & | in | ) | [inline, static, inherited] |
Definition at line 1093 of file fn_conv_to.hpp.
References itpp::Vec< eT >::_data().
01094 { 01095 arma_extra_debug_sigprint(); 01096 01097 itpp::Vec<out_eT> out(in.n_elem); 01098 01099 const in_eT* in_mem = in.memptr(); 01100 out_eT* out_mem = out._data(); 01101 01102 for(u32 i=0; i<in.n_elem; ++i) 01103 { 01104 out_mem[i] = out_eT( in_mem[i] ); 01105 } 01106 01107 return out; 01108 }
itpp::Vec< out_eT > conv_to< itpp::Vec< out_eT > >::from | ( | const Row< std::complex< in_T > > & | in | ) | [inline, static, inherited] |
Definition at line 1116 of file fn_conv_to.hpp.
References itpp::Vec< eT >::_data(), and copy_complex_elem().
01117 { 01118 arma_extra_debug_sigprint(); 01119 01120 typedef std::complex<in_T> in_eT; 01121 01122 itpp::Vec<out_eT> out(in.n_elem); 01123 01124 const in_eT* in_mem = in.memptr(); 01125 out_eT* out_mem = out._data(); 01126 01127 for(u32 i=0; i<in.n_elem; ++i) 01128 { 01129 copy_complex_elem(out_mem[i], in_mem[i]); 01130 } 01131 01132 return out; 01133 }
itpp::Vec< out_eT > conv_to< itpp::Vec< out_eT > >::from | ( | const Base< in_eT, T1 > & | in | ) | [inline, static, inherited] |
Definition at line 1141 of file fn_conv_to.hpp.
01142 { 01143 arma_extra_debug_sigprint(); 01144 01145 const unwrap<T1> tmp(in.get_ref()); 01146 01147 return conv_to< itpp::Vec<out_eT> >::from( tmp.M ); 01148 }