简体   繁体   English

带有可视代码的MathNet.numerics fsharp

[英]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.

相关问题 添加了MathNet.Numerics作为参考,但是可执行文件说无法加载参考文件 - Added MathNet.Numerics as reference, but the executable says could not load the refernce file 大型稀疏矩阵计算-MathNet数值 - Large Sparse Matrix Calculation - MathNet Numerics .Net框架中的MathNet.Numerics.LinearAlgebra - MathNet.Numerics.LinearAlgebra in .Net framework F#:对于MathNet数字,未定义值或构造函数矩阵 - F#: For MathNet Numerics the value or constructor matrix is not defined 不断从MathNet数值库中获取运行时错误。 似乎无法使其正常工作 - Keep getting runtime error from MathNet Numerics library. Can't seem to get it to work System.Numerics.dll中的BigInteger类型和FSharp.Core.dll中的BigInteger类型之间有什么区别? - What is the difference between BigInteger type in System.Numerics.dll and the BigInteger type in FSharp.Core.dll? 从Visual Web Developer Express引用FSharp.Core - Referencing FSharp.Core from Visual Web Developer Express 我可以在Mono / Linux上使用Visual Studio附带的FSharp.Core吗? - Can I use FSharp.Core that comes with Visual Studio on Mono/Linux 数学网。 随机源 - MathNet. RandomSource VS Code Omnisharp.MsBuild.Projectmanager 无法加载程序集 System.Numerics.Vectors 4.1.3.0 - VS Code Omnisharp.MsBuild.Projectmanager can not load assembly System.Numerics.Vectors 4.1.3.0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM