NumCpp  2.11.0
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 <iterator>
31 #include <vector>
32 
33 #include "NumCpp/NdArray.hpp"
34 
35 namespace nc
36 {
37  //============================================================================
38  // Method Description:
47  template<typename dtype, typename Iter>
48  NdArray<dtype> fromiter(Iter inBegin, Iter inEnd)
49  {
50  return NdArray<dtype>(inBegin, inEnd);
51  }
52 } // namespace nc
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:138
Definition: Cartesian.hpp:40
NdArray< dtype > fromiter(Iter inBegin, Iter inEnd)
Definition: fromiter.hpp:48