1. fix precision Error with undef initializer
2. fix a output mistake
This commit is contained in:
hypergraphUniverse 2022-03-07 11:22:00 +01:00
parent 2e6010b2fb
commit 0bcd44911c
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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)

View File

@ -28,7 +28,7 @@ using .JSONPhraser
YourVersion= "0.1"
# C(suitable for C and C++),Julia
codeStyle = "C"
codeStyle = "Julia"
#=======================User configured Section==========================#