update: update the test
This commit is contained in:
+15
-2
@@ -1,9 +1,22 @@
|
|||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
int main(){
|
int main(){
|
||||||
//init(15.0, 1e-1);
|
int size;
|
||||||
chi(bmin);
|
double *x = NULL;
|
||||||
|
double *y = NULL;
|
||||||
|
init(15.0, 1e-1, &size, &x, &y);
|
||||||
|
printf("Done!\n");
|
||||||
|
printf("Sample size: %d\n", size);
|
||||||
|
printf("x: %p\n", x);
|
||||||
|
printf("y: %p\n", y);
|
||||||
|
for (int i = 0; i < size; i++){
|
||||||
|
printf("%g %g\n", x[i], y[i]);
|
||||||
|
}
|
||||||
|
//chi(bmin);
|
||||||
|
|
||||||
|
free(x);
|
||||||
|
free(y);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user