scran_test_utils
Test utilities for libscran projects
Loading...
Searching...
No Matches
vector_n.hpp
Go to the documentation of this file.
1#ifndef SCRAN_TESTS_VECTOR_N_HPP
2#define SCRAN_TESTS_VECTOR_N_HPP
3
4#include <vector>
5
11namespace scran_tests {
12
21template<typename Type_>
22std::vector<Type_> vector_n(const Type_* ptr, size_t n) {
23 return std::vector<Type_>(ptr, ptr + n);
24}
25
26}
27
28#endif
Test utilites for libscran.
Definition compare_almost_equal.hpp:11
std::vector< Type_ > vector_n(const Type_ *ptr, size_t n)
Definition vector_n.hpp:22