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