00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef MTL_STATIC_SIZE_INCLUDE
00013 #define MTL_STATIC_SIZE_INCLUDE
00014
00015 #include <boost/numeric/mtl/operation/static_num_rows.hpp>
00016 #include <boost/numeric/mtl/operation/static_num_cols.hpp>
00017
00018
00019 namespace mtl {
00020
00022
00023 template <typename Collection>
00024 struct static_size {
00025 typedef typename static_num_rows<Collection>::type type;
00026 static const type value= static_num_rows<Collection>::value * static_num_cols<Collection>::value;
00027 };
00028
00029 }
00030
00031 #endif // MTL_STATIC_SIZE_INCLUDE