Support templates for working with vectors.
More...
#include <vector>
#include <algorithm>
#include <boost/range.hpp>
#include <ndarray/initialization.h>
|
template<typename To , typename Collection , typename unop > |
std::vector< To > | v_map (Collection src, unop op) |
|
template<typename T , typename unop > |
void | v_erase_if (std::vector< T > vec, unop op) |
|
template<typename T , typename Collection , typename unop > |
std::vector< T > | v_copy_if (Collection src, unop op) |
|
template<typename T > |
ndarray::Array< T, 1, 1 > | v_to_a (std::vector< T > vec) |
|
template<typename T , typename Range > |
std::vector< T > | r_to_v (Range r) |
|
template<typename T > |
std::vector< T > | a_to_v (ndarray::Array< T, 1 > arr) |
|
Support templates for working with vectors.
- Author
- Alex Ford (forda.nosp@m.s@uw.nosp@m..edu)
◆ a_to_v()
template<typename T >
std::vector<T> a_to_v |
( |
ndarray::Array< T, 1 > |
arr | ) |
|
◆ r_to_v()
template<typename T , typename Range >
std::vector<T> r_to_v |
( |
Range |
r | ) |
|
◆ v_copy_if()
template<typename T , typename Collection , typename unop >
std::vector<T> v_copy_if |
( |
Collection |
src, |
|
|
unop |
op |
|
) |
| |
◆ v_erase_if()
template<typename T , typename unop >
void v_erase_if |
( |
std::vector< T > |
vec, |
|
|
unop |
op |
|
) |
| |
◆ v_map()
template<typename To , typename Collection , typename unop >
std::vector<To> v_map |
( |
Collection |
src, |
|
|
unop |
op |
|
) |
| |
◆ v_to_a()
template<typename T >
ndarray::Array<T, 1, 1> v_to_a |
( |
std::vector< T > |
vec | ) |
|