-
Notifications
You must be signed in to change notification settings - Fork 0
/
mignicheweb.h
30 lines (19 loc) · 1.02 KB
/
mignicheweb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef MIGNICHEWEB_H
#define MIGNICHEWEB_H
#include "structs.h"
#include <gsl/gsl_vector.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_rng.h>
gsl_vector* SetNicheNetwork(struct foodweb,struct migration, struct resource, gsl_rng*, const gsl_rng_type*, gsl_matrix*);
gsl_matrix* SetNicheValues(struct foodweb, double, gsl_rng*, const gsl_rng_type*, gsl_matrix*);
gsl_matrix* SetFeedingMatrix(struct foodweb, gsl_matrix*, double, double, gsl_matrix*);
gsl_matrix* SetMasses(struct foodweb, gsl_matrix*, gsl_matrix*, double, gsl_matrix*);
gsl_vector* LinkElements(struct foodweb, gsl_matrix*, gsl_matrix*, gsl_matrix*, gsl_matrix*, double, double, int);
int CountLinks(gsl_matrix*, int, int);
void CallocFoodwebMem(struct foodweb*);
void SetZeroFoodwebMem(struct foodweb*);
void FreeFoodwebMem(struct foodweb*);
void AddTrophicWebParams(struct foodweb*, gsl_matrix*, gsl_matrix*);
void CallocStochasticMem(struct migration* stochastic, int, int);
void FreeStochasticMem(struct migration* stochastic);
#endif