Compare commits

...

4 commits

Author SHA1 Message Date
Stephan I. Böttcher
50c4b9fda0 hist: count lines with long, for more than 2G lines 2025-04-09 17:05:03 +02:00
Stephan I. Böttcher
e1038d843c Merge branch 'master' of codeberg.org:ET-Kiel/gpthist 2025-04-09 17:02:16 +02:00
Stephan I. Böttcher
39c9123709 hist: emit with 12 digit precision 2025-04-09 17:02:10 +02:00
Stephan I. Böttcher
1dc7d524f2 print.gpt: use pngcairo 2025-04-09 17:00:39 +02:00

8
hist.c
View file

@ -445,7 +445,7 @@ static inline bool parse_number(const char *s, double *d)
return true;
}
static inline bool parse_value(const char **s, struct axis_para *a, int n)
static inline bool parse_value(const char **s, struct axis_para *a, long n)
{
if (!parse_number(s[a->column], &a->val))
return false;
@ -633,14 +633,14 @@ static void emit_text()
{
printf("%lld ", aa->max - aa->min + 1);
for_axis_i(*aa, ia)
printf(" %g", value(aa, ia));
printf(" %.12g", value(aa, ia));
printf("\n");
for_axis_iii(*am, im, iim) {
printf("%g ", value(am, im));
printf("%.12g ", value(am, im));
for_axis_iii(*aa, ia, iia) {
v_index_t ii = mmidx(aa, iia, am, iim);
if (wmatrix_p)
printf(" %g", wmatrix[ii]);
printf(" %.12g", wmatrix[ii]);
else
printf(" %llu", umatrix[ii]);
}