NumCpp  2.5.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
fromiter.hpp
Go to the documentation of this file.
1 #pragma once
29 
30 #include "NumCpp/NdArray.hpp"
31 
32 #include <iterator>
33 #include <vector>
34 
35 namespace nc
36 {
37  //============================================================================
38  // Method Description:
48  template<typename dtype, typename Iter>
49  NdArray<dtype> fromiter(Iter inBegin, Iter inEnd)
50  {
51  return NdArray<dtype>(inBegin, inEnd);
52  }
53 } // namespace nc
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:72
Definition: Coordinate.hpp:45
NdArray< dtype > fromiter(Iter inBegin, Iter inEnd)
Definition: fromiter.hpp:49