dataIo.h 611 Bytes
Newer Older
perdacherMartin's avatar
perdacherMartin committed
1 2 3 4 5 6 7 8 9 10

#ifndef DATA_IO_H
#define DATA_IO_H

#include <stdlib.h>
#include <string.h>
#include <stdio.h>

#include <omp.h>

11 12
#include "mkl_vsl.h"

perdacherMartin's avatar
perdacherMartin committed
13 14
#define MAX_LINE_LENGTH 2049

Martin Perdacher's avatar
Martin Perdacher committed
15
void random_init_8_selective(double *array, const int N, const int D, const int INIT_SEED);
Martin Perdacher's avatar
Martin Perdacher committed
16
void random_init_unif(double *array, const int N, const int D, const int INIT_SEED=1);
17
void read_file(double *array, const int N, const int D, char filename[], const bool IS_BINARY);
perdacherMartin's avatar
perdacherMartin committed
18 19 20 21
void save_binary_file(double *array, const int N, const int D, char filename[]);
void save_text_file(double *array, const int N, const int D, char filename[]);

#endif