timedomainresonace/src/arma_numpy.h

26 lines
552 B
C
Raw Permalink Normal View History

// arma_numpy.h
//
// Author: J.A. de Jong
//
// Description: Header file for two function converting between Numpy
// arrays and armadillo matrices
//////////////////////////////////////////////////////////////////////
2015-02-20 09:34:05 +00:00
#pragma once
#ifndef ARMA_NUMPY_H
#define ARMA_NUMPY_H 1
2015-02-20 09:34:05 +00:00
#include <Python.h>
#include <numpy/arrayobject.h>
#include "vtypes.h"
2015-02-20 09:34:05 +00:00
SPOILNAMESPACE
vd vd_from_npy(PyArrayObject const * const);
PyObject* npy_from_vd(const vd& armavec);
2015-02-20 09:34:05 +00:00
#endif // ARMA_NUMPY_H
//////////////////////////////////////////////////////////////////////