Conversation
|
I'm still cleaning this up/getting tests to pass. |
|
All tests pass! |
|
I'd prefer this to the create-a-file approach, since it is all in memory, and does not require you to be on the same machine to share the data. |
|
I'm working on support for complex arrays, don't merge yet. |
|
All set! |
|
Sounds great. I will not have time to look at it before Monday, but I will On Saturday, January 17, 2015, Steven Silvester notifications@github.com
|
|
This was also an exercise in grokking the code base. FYI, my Matlab license expires in ~40 days. |
There was a problem hiding this comment.
Do you think Peter is OK with us using his code? Did the original have a license attached to it?
There was a problem hiding this comment.
http://www.fourmilab.ch/webtools/base64/
"This software is in the public domain. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, without any conditions or restrictions. This software is provided “as is” without express or implied warranty. "
|
Go for it. |
Bottom line: array passing is 10X faster without using temporary files.
Uses base64 encoding to pass arrays between Matlab and Python using a similar method to
complex. For Python, numeric-type arrays are converted to float64 and then passed as a dictionary. For Matlab, numeric arrays are converted to double and sent back as a structure.Also handles complex type arrays. Side benefit: arrays are now returned as ndarrays.