fix bugs
1. fix precision Error with undef initializer 2. fix a output mistake
This commit is contained in:
parent
2e6010b2fb
commit
0bcd44911c
@ -109,7 +109,7 @@ function Print3DMatrix(f,M;tabLen=0,varName="",codeStyle="C")
|
||||
print(f,"}");
|
||||
|
||||
elseif codeStyle=="Julia"
|
||||
print("Array{Float32,3}(undef,"*string(size(M)[1])*","*string(size(M)[2])*","*string(size(M)[3])*");\n");
|
||||
print(f,"fill(0f0,"*string(size(M)[1])*","*string(size(M)[2])*","*string(size(M)[3])*");\n");
|
||||
for i in 1:size(M)[1]
|
||||
Print2DMatrix(f,M[i,:,:];varName=varName*"["*string(i)*",:,:]",codeStyle="Julia");
|
||||
end
|
||||
|
@ -24,7 +24,7 @@ function ReliAffixECDConverter()
|
||||
|
||||
# Initialize with empty Array
|
||||
# Rank, Substats, Sequence
|
||||
dataSet=Array{Float32,3}(undef,5,length(LookUpTable.substatProject),4);
|
||||
dataSet=fill(0f0,5,length(LookUpTable.substatProject),4);
|
||||
|
||||
# fill in the data
|
||||
for i in 1:length(dict)
|
||||
@ -62,7 +62,7 @@ function ReliLevelECDConverter()
|
||||
end
|
||||
|
||||
# Rank, Substats, Level
|
||||
dataSet=Array{Float32,3}(undef,5,length(LookUpTable.mainstatProject),21);
|
||||
dataSet=fill(0f0,5,length(LookUpTable.mainstatProject),21);
|
||||
|
||||
for i in 1:length(dict)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user