This notebook provides a quick demonstration, how to use Julia's eigen
function from python.
First you need to install the Julia package from python. For this, for example, do the following:
pip install julia
Now you can run the subsequent code:
import numpy as np
# Launch Julia:
from julia.api import Julia
Julia(compiled_modules=False)
# Import LinearAlgebra
from julia import LinearAlgebra
a = np.random.rand(10, 10)
a = a + np.transpose(a) + np.eye(10)
res = LinearAlgebra.eigen(a)
res.values
res.vectors