cotila  1.2.1
A compile time linear algebra system
All Classes Files Functions Variables Modules Pages

◆ operator+() [3/3]

template<typename T , std::size_t N>
constexpr vector<T, N> cotila::operator+ ( const vector< T, N > &  a,
const vector< T, N > &  b 
)
Parameters
aan N-vector of type T
ban N-vector of type T
Returns
$ \textbf{a} + \textbf{b} $ such that $ \left(\textbf{a} + \textbf{b}\right)_i = \textbf{a}_i + \textbf{b}_i $

Computes the vector sum.