00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef MTL_CROP_INCLUDE
00013 #define MTL_CROP_INCLUDE
00014
00015 #include <boost/numeric/mtl/utility/enable_if.hpp>
00016
00017 namespace mtl {
00018
00019 namespace vector {
00020
00022
00023 template <typename T>
00024 typename mtl::traits::enable_if_vector<T, T&>::type inline crop(T& x)
00025 {
00026 x.crop(); return x;
00027 }
00028 }
00029
00030 namespace matrix {
00031
00033
00034 template <typename T>
00035 typename mtl::traits::enable_if_matrix<T, T&>::type inline crop(T& x)
00036 {
00037 x.crop(); return x;
00038 }
00039 }
00040
00041 using vector::crop;
00042 using matrix::crop;
00043
00044 }
00045
00046 #endif // MTL_CROP_INCLUDE