aboutsummaryrefslogtreecommitdiff
path: root/src/parse.h
blob: d8aeada56000fd75971a482ae0154725766dc390 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef PARSE_H
#define PARSE_H

#include <stdio.h>
#include <stdbool.h>

typedef struct Array {
    double *data;
    size_t shape[2];
} Array;


void file_read(
        char *filepath,
        Array *input, Array *out,
        char *in_keys[], size_t n_in_keys,
        char *out_keys[], size_t n_out_keys,
        bool read_output,
        char *file_format
        );

void file_write(
        char *filepath,
        Array input, Array out,
        char *in_keys[], size_t n_in_keys,
        char *out_keys[], size_t n_out_keys,
        bool write_input,
        char *file_format);

char * file_format_infer(char *filename);
#endif
Feel free to download, copy and edit any repo