as_helper< vector< T, TV >, vector< F, FV > > Struct Template Reference
#include <vector.hpp>
List of all members.
Static Public Member Functions
Detailed Description
template<typename T, typename F, typename TV, typename FV>
struct mmx::as_helper< vector< T, TV >, vector< F, FV > >
Definition at line 266 of file vector.hpp.
Member Function Documentation
static vector<T,TV> cv |
( |
const vector< F, FV > & |
v |
) |
[inline, static] |
Definition at line 268 of file vector.hpp.
References mmx::CF(), mmx::is_a_scalar(), mmx::N(), and mmx::T.
00268 {
00269 format<T> fm= as<format<T> > (CF(v));
00270 nat l= aligned_size<T,TV> (N(v));
00271 T* c= mmx_formatted_new<T> (l, fm);
00272 for (nat i=0; i<N(v); i++) c[i]= as<T> (v[i]);
00273 return vector<T,TV> (c, N(v), l, is_a_scalar (v), fm); }
The documentation for this struct was generated from the following file: