首页 > 解决方案 > 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))

推荐阅读