f# 的 MathNet 中的向量在哪里
Where is vector in MathNet for f#
我正在使用 Visual Studio 2017。我在下面的矢量上收到错误消息:
Severity Code Description Project File Line Suppression State
Error FS0039 The value or constructor 'vector' is not defined. Maybe you want one of the following:
Vector TestFSharp c:\users\administrator\documents\visual studio 2017\Projects\TestFSharp\TestFSharp\Program.fs 88 Active
程序:
open System
open System.Net
open MathNet
open MathNet.Numerics
open MathNet.Numerics.LinearAlgebra.Double
let v = vector [ 1.0; 2.0; 3.0 ]
vector
函数在MathNet.Numerics.LinearAlgebra
中定义,您也需要打开该命名空间。
我正在使用 Visual Studio 2017。我在下面的矢量上收到错误消息:
Severity Code Description Project File Line Suppression State
Error FS0039 The value or constructor 'vector' is not defined. Maybe you want one of the following:
Vector TestFSharp c:\users\administrator\documents\visual studio 2017\Projects\TestFSharp\TestFSharp\Program.fs 88 Active
程序:
open System
open System.Net
open MathNet
open MathNet.Numerics
open MathNet.Numerics.LinearAlgebra.Double
let v = vector [ 1.0; 2.0; 3.0 ]
vector
函数在MathNet.Numerics.LinearAlgebra
中定义,您也需要打开该命名空间。