vconcat (1)

Vertical concatenation of 2 vectors.


Prototype

auto vconcat(const Vector<T1> &a, const Vector<T2> &b)

Parameters

aFirst vector
bSecond vector

Returns

Vertical concatenation

Description

This function merges 2 column vectors: \[ c = \left( \begin{array}{c} a_0\\ a_1\\ \vdots\\ b_{n-1}\\ b_0\\ b_1\\ \vdots\\ b_{m-1}\\ \end{array} \right) \]

(assuming a and b have respectively \(n\) et \(m\) elements). The | operator has been redefined to make the same operation.

Example

let a = Vecf::ones(1),
    b = Vecf::zeros(5),
    c = vconcat(a, b); // (or c = a | b)