NumCpp  2.12.1
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 <string>
31
32#include "NumCpp/NdArray.hpp"
33
34namespace nc
35{
36 //============================================================================
37 // Method Description:
45 template<typename dtype>
46 void tofile(const NdArray<dtype>& inArray, const std::string& inFilename)
47 {
48 return inArray.tofile(inFilename);
49 }
50
51 //============================================================================
52 // Method Description:
61 template<typename dtype>
62 void tofile(const NdArray<dtype>& inArray, const std::string& inFilename, const char inSep)
63 {
64 return inArray.tofile(inFilename, inSep);
65 }
66} // namespace nc
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:139
void tofile(const std::string &inFilename) const
Definition: NdArrayCore.hpp:4710
Definition: Cartesian.hpp:40
void tofile(const NdArray< dtype > &inArray, const std::string &inFilename)
Definition: tofile.hpp:46