What is the alternative to NumPy in iron python?

Vishnu
Vishnu Member, Employee Posts: 222
100 Comments 100 Likes Second Anniversary Name Dropper
✭✭✭✭
edited November 2022 in General Language Questions

Because Numpy and SciPyY are numerical libraries supported by Python rather than IronPython, they cannot be used with ACT.

Answers

  • Vishnu
    Vishnu Member, Employee Posts: 222
    100 Comments 100 Likes Second Anniversary Name Dropper
    ✭✭✭✭
    Answer ✓

    Help Doc Link

    Numerical library that IronPython supports is Math.net. This library is available for use with ACT and is installed in the following directory:

    C:\Program Files\ANSYS Inc\v212\Addins\ACT\bin\Win64\MathNet.Numerics.dll

    You can add reference to dll and use them like below:

    clr.AddReferenceToFileAndPath(​​"C:\Program Files\ANSYS Inc\v212\Addins\ACT\bin\Win64\MathNet.Numerics.dll")
    import MathNet
    

    Please refer for examples in the help doc link above