Math.Net function in Python with Rhino for Mac?

Can anyone help me implement Math.Net functions in a GHPython component? The link here gives instructions on Windows, but I’m on a mac:

I need a solver for sparse matrix calculations. GHPython Remote with scipy would also do the trick, but that doesn’t seem to work for mac rhino at this time. Using Math.Net on a mac seems like it should be possible.

Moved to Rhino Developer category

Hi @Bachman,

Nuget packages can be downloaded on the Mac and work just the same.

If you want to simplify, you can skip the Nuget step entirely, and just copy the MathNet.Numerics.dll file into the folder that is mentioned at the beginning of the script. It can be any folder that works for you. The exact version of the .dll decides the exact language that you can use in the script, but it’s more or less the same in the same major version (it was MathNet 3).

You can get the package here:

and, for simplicity, I’m attaching a copy of the package (renamed as zip): (4.7 MB)

You can use the MathNet.Numerics.dll (algorithms) and MathNet.Numerics.xml (help file) files from lib/net40/.

The rest should be the same.



Giulio Piacentino
for Robert McNeel & Associates

Works great! Thanks so much!!