diff options
author | Edoardo Pasca <edo.paskino@gmail.com> | 2017-08-04 16:17:18 +0100 |
---|---|---|
committer | Edoardo Pasca <edo.paskino@gmail.com> | 2017-08-04 16:17:18 +0100 |
commit | 9974b5a4bf88ac3e7929d7c33a911c90fcfcff29 (patch) | |
tree | 56b96dd07dadedd123a348b2c274b3ac486e17a5 /src | |
parent | fbaf7281141e0ddad5046b433ba0a72d360d09aa (diff) | |
download | regularization-9974b5a4bf88ac3e7929d7c33a911c90fcfcff29.tar.gz regularization-9974b5a4bf88ac3e7929d7c33a911c90fcfcff29.tar.bz2 regularization-9974b5a4bf88ac3e7929d7c33a911c90fcfcff29.tar.xz regularization-9974b5a4bf88ac3e7929d7c33a911c90fcfcff29.zip |
test for general boost::python / numpy routines
Diffstat (limited to 'src')
-rw-r--r-- | src/Python/test.py | 18 |
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 |