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

◆ concat()

template<typename T , std::size_t N, std::size_t M>
constexpr vector<T, N + M> cotila::concat ( vector< T, N >  a,
vector< T, M >  b 
)
Parameters
aan N-vector of type T
ban M-vector of type T
Returns
an N+M-vector $ \left[\textbf{a} \textbf{b}\right] $ such that $ \left(\left[\textbf{a} \textbf{b}\right]\right)_i = \begin{cases} \textbf{a}_i & i < N\\ \textbf{b}_{i - N} & i \ge N \end{cases} $

Slices a vector into a subvector.