Boost QVM

operator-(v,v)

#include <boost/qvm/v.hpp>

namespace boost
{
    namespace qvm
    {
        //Only enabled if:
        //  is_v<A>::value && is_v<B>::value &&
        //  v_traits<A>::dim==v_traits<B>::dim
        template <class A,class B>
        typename deduce_v2<A,B,v_traits<A>::dim>::type
        operator-( A const & a, B const & b );
    }
}

Returns:

A vector of the same size as a and b, with elements the elements of b subtracted from the corresponding elements of a.


See also: boost/qvm/v.hpp