AFF --- A container for numbers (array) by Friederich and Forbriger.

◆ series_from_raw_memory()

template<class T >
aff::Series<T> aff::series_from_raw_memory ( T *  pointer,
const unsigned int  size 
)

create a series class from raw memory.

Parameters
pointerpointer to first element in raw memory
sizenumber of elements allocated in raw memory
Returns
series container accessing raw memory
Examples:
tests/helpertest.cc.

Definition at line 129 of file converters.h.

Referenced by main().

131  {
132  typedef aff::Series<T> Tseries;
133  typename Tseries::Tshape shape(0, size-1, 0);
134  typename Tseries::Trepresentation representation(pointer, size);
135  Tseries retval(shape, representation);
136  return(retval);
137  } // aff::Series<T> series_from_raw_memory
A base class for time series and spectra.
Definition: series.h:266
Here is the caller graph for this function: