Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
juobs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Javier Ugarrio
juobs
Commits
59d62eab
Commit
59d62eab
authored
Oct 02, 2020
by
Alessandro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrected issues with variable definition and usage of copy function. (linalg)
parent
47cbbe0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/juobs_linalg.jl
src/juobs_linalg.jl
+5
-5
No files found.
src/juobs_linalg.jl
View file @
59d62eab
...
...
@@ -60,8 +60,8 @@ function get_matrix(corr_diag::Vector{Vector{uwreal}}, corr_upper::Vector{Vector
return
nothing
end
res
=
Vector
{
Matrix
}(
undef
,
time
)
# array with all the matrices at each time step.
aux
=
Matrix
{
uwreal
}(
undef
,
n
,
n
)
for
t
in
1
:
time
aux
=
Matrix
{
uwreal
}(
undef
,
n
,
n
)
count
=
0
#testing = corr_upper[1][1]
for
i
in
range
(
n
-
1
,
1
,
step
=-
1
)
...
...
@@ -73,7 +73,7 @@ function get_matrix(corr_diag::Vector{Vector{uwreal}}, corr_upper::Vector{Vector
aux
[
i
,
i
]
=
corr_diag
[
i
][
t
]
end
aux
[
n
,
n
]
=
corr_diag
[
n
][
t
]
res
[
t
]
=
aux
res
[
t
]
=
copy
(
aux
)
end
return
res
end
...
...
@@ -89,15 +89,15 @@ function energies(evals::Vector{Vector{uwreal}})
time
=
length
(
evals
)
n
=
length
(
evals
[
1
])
eff_en
=
Vector
{
Vector
}(
undef
,
n
)
#
aux_en = Vector{uwreal}(undef, time-1)
aux_en
=
Vector
{
uwreal
}(
undef
,
time
-
1
)
for
i
in
1
:
n
aux_en
=
Vector
{
uwreal
}(
undef
,
time
-
1
)
#
aux_en = Vector{uwreal}(undef, time-1)
for
t
in
1
:
time
-
1
ratio
=
evals
[
t
][
i
]
/
evals
[
t
+
1
][
i
]
aux_en
[
t
]
=
log
(
sqrt
(
ratio
*
ratio
))
end
uwerr
.
(
aux_en
)
eff_en
[
i
]
=
aux_en
eff_en
[
i
]
=
copy
(
aux_en
)
end
return
eff_en
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment