NumCpp  2.10.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
tofile.hpp
Go to the documentation of this file.
1 #pragma once
29 
30 #include <string>
31 
32 #include "NumCpp/NdArray.hpp"
33 
34 namespace nc
35 {
36  //============================================================================
37  // Method Description:
46  template<typename dtype>
47  void tofile(const NdArray<dtype>& inArray, const std::string& inFilename)
48  {
49  return inArray.tofile(inFilename);
50  }
51 
52  //============================================================================
53  // Method Description:
63  template<typename dtype>
64  void tofile(const NdArray<dtype>& inArray, const std::string& inFilename, const char inSep)
65  {
66  return inArray.tofile(inFilename, inSep);
67  }
68 } // namespace nc
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:138
void tofile(const std::string &inFilename) const
Definition: NdArrayCore.hpp:4602
Definition: Coordinate.hpp:45
void tofile(const NdArray< dtype > &inArray, const std::string &inFilename)
Definition: tofile.hpp:47