What is the alternative to NumPy in iron python?

Options
Vishnu
Vishnu Member, Employee Posts: 212
Name Dropper First Anniversary Solution Developer Community of Practice Member First Comment
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: 212
    Name Dropper First Anniversary Solution Developer Community of Practice Member First Comment
    Answer ✓
    Options

    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