11using Args = std::vector<array>;
12using Kwargs = std::map<std::string, array>;
21 const std::string& file,
22 const std::function<std::vector<array>(
const Args&)>& fun,
23 bool shapeless =
false);
26 const std::string& file,
27 const std::function<std::vector<array>(
const Kwargs&)>& fun,
28 bool shapeless =
false);
31 const std::string& path,
32 const std::function<std::vector<array>(
const Args&,
const Kwargs&)>& fun,
33 bool shapeless =
false);
39 const std::string& file,
40 const std::function<std::vector<array>(
const Args&)>& fun,
42 bool shapeless =
false);
45 const std::string& file,
46 const std::function<std::vector<array>(
const Kwargs&)>& fun,
48 bool shapeless =
false);
51 const std::string& file,
52 const std::function<std::vector<array>(
const Args&,
const Kwargs&)>& fun,
55 bool shapeless =
false);
FunctionExporter exporter(const std::string &file, const std::function< std::vector< array >(const Args &)> &fun, bool shapeless=false)
Make an exporter to save multiple traces of a given function to the same file.
void export_function(const std::string &file, const std::function< std::vector< array >(const Args &)> &fun, const Args &args, bool shapeless=false)
Export a function to a file.
ImportedFunction import_function(const std::string &file)
Import a function from a file.
std::vector< array > Args
Definition export.h:11
std::map< std::string, array > Kwargs
Definition export.h:12
Definition export_impl.h:11
Definition export_impl.h:54