Boost LA

operator-(vector)

#include <boost/la/vector_minus.hpp>

#include <boost/la/deduce_vector.hpp>

namespace
boost
    {
    namespace
    la
        {
        //Only enabled if: is_vector<A>::value
        template <class A>
        typename deduce_vector<A>::type
        operator-( A const & a );
        }
    }

Returns:

A vector of the negated elements of a.