summaryrefslogtreecommitdiff
path: root/lib/convex.h
blob: 5a405d47b653a6ff7be1feaa1eb94b9b442f7e53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

#pragma once

#include <inttypes.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>

#include "types.h"

typedef struct {
  count_t x;
  double y;
} point_t;

typedef struct list_tag {
  struct list_tag *prev;
  struct list_tag *next;
  point_t *p;
} list_t;

double *get_convex_minorant(count_t n, double *Gammas);