我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何使用gonum / go制作具有复杂数字条目的矩阵?

As it is written in the title, how can I create an instance of a matrix with complex128? What is the complex equivalent of the following?

matrix := mat.NewDense(2, 2, []float64{0, 0, 0, 3})

how can I write something like this?

Matrix :=  mat.NewDense(2, 2, []complex128{0, 0, 0, 3i})

The Gonum mat package does not currently support complex128 values. It is something we are working on.

近期文章

  • 使用代理时去泄漏goroutines
  • 通过JSON-RPC调用传递身份验证详细信息
  • 通道并发保证
  • sync.Map是原子的吗? 我主要是指加载,存储,加载或存储,删除
  • 通过名称设置protobuf属性
  • 遍历go例程时出现数组索引错误
  • 在预检请求中发送自定义标头选项角度5
  • 封装处理程序代码后出现错误500
  • 为什么Gorm在CreateTable时会忽略结构?
  • 在golang中的变量中解析Json
  • 如何加入字符串数组?
  • time.Timer的行为
  • 使用go struct的ASN.1解组Wireshark十六进制代码
  • 在Golang中的模块中找不到用法
  • golang为类型为map [string] interface {}的对象设置新值
  • Testify Suite中SetupSuite和SetupTest之间的区别
  • 为什么当类型实现接口时,行为会有所不同?
  • 如何读取大型CSV文件
  • 仅更新golang中的非空结构字段
  • Golang解析数组

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华