chundoong-lab-ta/SHPC2022/hw3/prefix_sum/util.h

22 lines
388 B
C
Raw Normal View History

2022-10-18 20:27:08 +09:00
#pragma once
void timer_init();
void timer_start(int i);
double timer_stop(int i);
void alloc_array(double **m, int N);
void rand_array(double *m, int N);
void zero_array(double *m, int N);
void copy_array(double *a, double *b, int N);
void print_vec(double *m, int N);
void print_mat(double *m, int M, int N);
void check_prefix_sum(const double *out, const double *in, int N);