I am trying to run Julia code from Python using PyJulia
. I am confused about how should I run
mat = SMatrix{2, 2}([1 2; 3 4])
in Python? I was trying
from julia import StaticArrays as sa
mat = sa.SMatrix{2, 2}([1 2; 3 4])
and as I expected, I get the error
*** SyntaxError: invalid syntax
Any idea what I should do?
Thanks in advance!