syslib Class Reference
[Syslib]

#include <syslib_proto.hpp>

List of all members.

Static Public Member Functions

template<typename eT >
static arma_inline void copy_elem (eT *dest, const eT *src, const u32 n_elem)


Detailed Description

Definition at line 20 of file syslib_proto.hpp.


Member Function Documentation

template<typename eT >
static arma_inline void syslib::copy_elem ( eT *  dest,
const eT *  src,
const u32  n_elem 
) [inline, static]

Definition at line 28 of file syslib_proto.hpp.

Referenced by op_trans::apply_noalias(), Col< eT >::Col(), 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(), Mat< eT >::init(), Mat< eT >::Mat(), Row< eT >::Row(), auxlib::solve_od(), and auxlib::solve_ud().

00029     {
00030     if( n_elem <= (128/sizeof(eT)) )
00031       {
00032       for(u32 i=0; i<n_elem; ++i)
00033         {
00034         dest[i] = src[i];
00035         }
00036       }
00037     else
00038       {
00039       std::memcpy(dest, src, n_elem*sizeof(eT));
00040       }
00041   
00042     }