julia - Julia:使用不在主模块中的运算符
问题描述
解决方案
I assume that you do not want to just call
using LinearAlgebra
to bring the dot operator into current module namespace, right?
In this case, you can call operators in a module by prepending the operator with a colon:
import LinearAlgebra
LinearAlgebra.:⋅((1,2), (0,1))
推荐阅读
- pine-script - 在没有 1 条延迟的情况下回测“每条一次”安全策略?
- python - 如何模拟创建 Bigquery 客户端的现有函数
- docker - 如何在 Docker for Windows 和 WSL2 上共享 Minikube 实例?
- date - 并非所有日期实际上都是日期
- javascript - 在 for 循环中分配变量
- node.js - 如何将 Angular(前端)应用程序和 NodeJs RESTAPi 的应用程序部署到 Apache Tomcat 中?
- kubernetes - AMQP - Argo-events:argo-workflow 未触发
- google-chrome - 预加载 LCP 图像以获得高优先级时,是否应该删除链接标记中的 as 属性?
- oracle - 在 SQL Loader 中重新格式化日期
- python - 如何旋转代理以在普通浏览器上使用