aboutsummaryrefslogtreecommitdiff
path: root/src/parse.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse.h')
-rw-r--r--src/parse.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/parse.h b/src/parse.h
new file mode 100644
index 0000000..e50f6bd
--- /dev/null
+++ b/src/parse.h
@@ -0,0 +1,28 @@
+#ifndef PARSE_H
+#define PARSE_H
+
+#include <stdio.h>
+#include <stdbool.h>
+
+typedef struct Array {
+ double *data;
+ size_t shape[2];
+} Array;
+
+void json_read(
+ FILE *fp,
+ Array *input, Array *out,
+ char *out_keys[], size_t out_keys_size,
+ char *in_keys[], size_t in_keys_size,
+ bool read_output
+ );
+
+void csv_read(
+ FILE *fp,
+ Array *input, Array *out,
+ size_t in_cols[], size_t in_cols_size,
+ size_t out_cols[], size_t out_cols_size,
+ bool read_output,
+ char separator
+ );
+#endif
Feel free to download, copy and edit any repo