8#ifndef OPENFPM_IO_SRC_PLOT_UTIL_HPP_ 
    9#define OPENFPM_IO_SRC_PLOT_UTIL_HPP_ 
   19template<
typename T> 
static inline void Fill1D(T start, T stop, 
size_t np, 
openfpm::vector<T> & x,T f(T x))
 
   23    T spacing = (stop - start) / (np - 1);
 
   25    for (
size_t i = 0 ; i < np ; i++)
 
   26        x.get(i) = f(start + i*spacing);
 
   35template<
typename T> 
static inline void Fill1D(T start, T stop, 
size_t np, 
openfpm::vector<T> & x)
 
   39    T spacing = (stop - start) / (np - 1);
 
   41    for (
size_t i = 0 ; i < np ; i++)
 
   42        x.get(i) = start + i*spacing;
 
Implementation of 1-D std::vector like structure.