/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#ifndef ECON_H
#define ECON_H

#include "ts.h"
#include "mx.h"
#include "sort.h"

// print-macro
#define PRINT(z) cout << "Name : " << #z << "\n" << z

#ifdef DEBUG
// dump-macro
#define DUMP(z) cout << "DUMP> Name : " << #z ; z##.dump()
#endif

// time-series -> matrix conversion
mx matrix(int n,...);

// least squares
void lsq(ts y,int n,...);

#endif
