summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2017-08-04 16:17:18 +0100
committerEdoardo Pasca <edo.paskino@gmail.com>2017-10-11 15:38:09 +0100
commit662ab4ac9c3d89cdc1527c2a2bdcf442f3b6a173 (patch)
treee02ca3cdd116adc98ebd735e84d18db0fbf60159
parent4bef3726577ddf1bf2b594620e106573c6f18693 (diff)
downloadregularization-662ab4ac9c3d89cdc1527c2a2bdcf442f3b6a173.tar.gz
regularization-662ab4ac9c3d89cdc1527c2a2bdcf442f3b6a173.tar.bz2
regularization-662ab4ac9c3d89cdc1527c2a2bdcf442f3b6a173.tar.xz
regularization-662ab4ac9c3d89cdc1527c2a2bdcf442f3b6a173.zip
test for general boost::python / numpy routines
-rw-r--r--src/Python/test.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Python/test.py b/src/Python/test.py
new file mode 100644
index 0000000..e283f89
--- /dev/null
+++ b/src/Python/test.py
@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+"""
+Created on Thu Aug 3 14:08:09 2017
+
+@author: ofn77899
+"""
+
+import fista
+import numpy as np
+
+a = np.asarray([i for i in range(3*4*5)])
+a = a.reshape([3,4,5])
+print (a)
+b = fista.mexFunction(a)
+#print (b)
+print (b[4].shape)
+print (b[4])
+print (b[5]) \ No newline at end of file