0

I stumbled upon that question.

I'm using python from matlab (reference). creating numpy arrays is as easy as py.numpy.array(rand(1, 10)). By passing the dimensions I can also create a small method that will allow me to pass multidimensional arrays.

The performance, though, is awful. I guess it's because the conversion is first to python's list and then to matlab array (boxing and unboxing).

Is there a way (like the one suggested in the referenced question) to improve that conversion?

2
  • Something like this?: stackoverflow.com/a/45290997/4045774 Commented Aug 28, 2018 at 9:05
  • that's when calling matlab from inside python. I'm doing the opposite - inside matlab calling python. Commented Aug 28, 2018 at 10:02

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.