scicpp::signal::zero_padding
Defined in header <scicpp/signal.hpp>
Performs zero padding of an array.
-
template<typename
T>
std::vector<T> zero_padding(const std::vector<T> &v, std::size_t new_size)
if new_size is larger than v.size() then zero are added the vector end,
else the vector is cropped.