matrix_functions.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00013 #ifndef matrix_functions_h
00014 #define matrix_functions_h
00015
00016 namespace cml {
00017
00026 template<typename E, class AT, typename BO, typename L>
00027 inline matrix<E,AT,BO,L>
00028 identity(const matrix<E,AT,BO,L>& m)
00029 {
00030 typename matrix<E,AT,BO,L>::temporary_type result;
00031
00032
00033 cml::et::detail::Resize(result, m.size());
00034 result.identity();
00035 return result;
00036 }
00037
00038 }
00039
00040 #endif
00041
00042
00043