[英]MathNet.numerics fsharp with visual code
I would like to use MathNet.Numerics in my fsharp script file (I am very newbie). 我想在我的fsharp脚本文件中使用MathNet.Numerics(我是新手)。 My OS is ubuntu and I am using visual code.
我的操作系统是ubuntu,正在使用可视代码。
Would you know the best way to load this package in my script file? 您知道在我的脚本文件中加载此软件包的最佳方法吗?
I thank you in advance. 我提前谢谢你。 Robi
罗比
I recommend you read through tips 5 and 6 in this excellent primer on fsi: http://brandewinder.com/2016/02/06/10-fsharp-scripting-tips/ 我建议您阅读fsi上这本出色的入门文章中的技巧5和6: http : //brandewinder.com/2016/02/06/10-fsharp-scripting-tips/
In a nutshell, you load a dll using the #r
directive, for example: 简而言之,您可以使用
#r
指令加载dll,例如:
#r @"../packages/FSharp.Data.2.2.5/lib/net40/FSharp.Data.dll"
open FSharp.Data
Now, to get MathNet to your packages folder, you can use nuget, or for more complex projects it is recommended to use paket. 现在,要将MathNet放入您的packages文件夹,可以使用nuget,或者对于更复杂的项目,建议使用paket。
How to install NuGet from command line on linux . 如何在Linux上从命令行安装NuGet 。
https://fsprojects.github.io/Paket/installation.html https://fsprojects.github.io/Paket/installation.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.