timedomainresonace/src/arma_numpy.h

26 lines
552 B
C

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