Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经定义了以下变量
julia> X = (1:10) * ones(1,10)
它定义了一个矩阵,每行等于相同的数字,并且列中的数字从 1 增加到 10 增加 1。我想知道哪种方法使用 Julia 作为函数*。我怎么能这样问朱莉娅?
*
@which是您正在寻找的:
@which
@which (1:10) * ones(1, 10) # *(A::AbstractArray{T,1}, B::AbstractArray{T,2}) at linalg/matmul.jl:89
在Jupyter中,它还将超链接到Julia 的 GitHub 中定义该方法的相应代码行。