ToNumpy.hpp
1 // Distributed under the MIT License.
2 // See LICENSE.txt for details.
3 
4 #pragma once
5 
6 #include <Python.h>
7 
8 /// \cond
9 class Matrix;
10 /// \endcond
11 
12 namespace py_bindings {
13 /// Convert Matrix to a Numpy Array. Always creates a copy.
14 PyObject* to_numpy(const Matrix& matrix);
15 } // namespace py_bindings
Definition: Bindings.cpp:25
A dynamically sized matrix of doubles with column-major storage.
Definition: Matrix.hpp:19