00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef MTL_VEC_NEGATE_EXPR_INCLUDE
00015 #define MTL_VEC_NEGATE_EXPR_INCLUDE
00016
00017 #include <boost/static_assert.hpp>
00018
00019 #include <boost/numeric/mtl/vector/map_view.hpp>
00020 #include <boost/numeric/mtl/operation/sfunctor.hpp>
00021
00022 namespace mtl { namespace vector {
00023
00024 template <typename E1>
00025 inline negate_view< E1 >
00026 operator- (const vec_expr<E1>& e1)
00027 {
00028 return negate_view< E1 >(static_cast<const E1&>(e1));
00029 }
00030
00031 } }
00032
00033 #endif
00034