Boost QVM

operator+(m,m)

#include <boost/qvm/m.hpp>

namespace boost
{
    namespace qvm
    {
        //Only enabled if:
        //  is_m<A>::value && is_m<B>::value &&
        //  m_traits<A>::rows==m_traits<B>::rows &&
        //  m_traits<A>::cols==m_traits<B>::cols
        template <class A,class B>
        typename deduce_m2<A,B,m_traits<A>::rows,m_traits<A>::cols>::type
        operator+( A const & a, B const & b );
    }
}

Returns:

A matrix of the same size as a and b, with elements the elements of b added to the corresponding elements of a.


See also: boost/qvm/m.hpp