小白求指点julia的for循环的end问题,代码如下,我用的vscode编辑
function llg(dm_dt::Array{Float64, 4}, m::Array{Float64, 4}, h::Array{Float64, 4},nx::Int64,ny::Int64,nz::Int64,lambda::{Float64,3}, alpha::Float64, gamma::Float64)
a = alphagamma
for i = 1:nx
for j = 1:ny
for k = 1:nz
lambda[i][j][k] = a/m[i][j][k]
mxh[i][j][k] = cross_product((m[i][j][k],h[i][j][k])
dm_dt[i][j][k] = -gammamxh[i][j][k]-lambda[i][j][k]*cross_product(m[i][j][k],mxh[i][j][k])
end
end
end
end
vscode告诉我函数里面应该加一个. 为什么?
第一个end的地方有一个error 是啥呀