I haven't tried, but I think it should be
result = j.inv(randMat)
On Tuesday, 25 October 2016 05:05:47 UTC+1, Corbin Foucart wrote:
>
> How? If you don't mind my asking. It doesn't seem that documentation
> exists... Suppose in a python script, I have:
>
> [python imports]
> [pyjulia initialization]
> j = julia.Julia()
>
> randMat = np.random.rand(3, 3)
> # what should I put here to pass randMat to julia?
> result = j.eval("inv(julia_randmat)")
>
> # ^^^ is this how I would move the result back to python?
>
>
>
> On Tuesday, October 18, 2016 at 7:50:03 PM UTC-4, Steven G. Johnson wrote:
>>
>>
>>
>> On Tuesday, October 18, 2016 at 4:42:51 PM UTC-4, Corbin Foucart wrote:
>>>
>>> 2) Call Julia code directly from python (I don't want to perform some
>>> trivial computation as in the examples I've found, I want to operate on the
>>> lists of numpy arrays)
>>>
>>
>> pyjulia can do this.
>>
>