【问题标题】:F# seq<float> to ILNumerics in functional styleF# seq<float> 到函数风格的 ILNumerics
【发布时间】:2013-11-06 09:16:27
【问题描述】:

我有一个返回 seq&lt;float&gt; 的 F# 查询。

我想知道如何使用 F# 惯用函数样式将 seq&lt;float&gt; 中的数据填充到 ILNumerics 密集数组 (http://ilnumerics.net/FunctionRules.html) 中。

seq 中的数据可能对应于一行、一列或整个密集数组。 也欢迎引用 F# 代码。

【问题讨论】:

    标签: f# ilnumerics


    【解决方案1】:

    查看this 页面上的 C# 示例,这样的东西应该可以工作

    let toILNUM input = array(input |> Seq.toArray)
    

    【讨论】:

      猜你喜欢
      • 2010-11-08
      • 1970-01-01
      • 1970-01-01
      • 2012-06-18
      • 1970-01-01
      • 1970-01-01
      • 2017-02-25
      • 2012-09-27
      • 1970-01-01
      相关资源
      最近更新 更多