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
5f368dae
Commit
5f368dae
authored
Jan 14, 2021
by
Alessandro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes in juobs_linalg
parent
d05ccd35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
src/juobs.jl
src/juobs.jl
+1
-1
src/juobs_linalg.jl
src/juobs_linalg.jl
+10
-10
No files found.
src/juobs.jl
View file @
5f368dae
...
...
@@ -8,7 +8,7 @@ include("juobs_tools.jl")
include
(
"juobs_obs.jl"
)
export
read_mesons
,
read_ms1
,
read_ms
,
read_md
export
get_matrix
,
uwgevp_tot
,
energies
,
uwdot
export
get_matrix
,
uwgevp_tot
,
energies
,
uwdot
,
transpose
,
uwgevp
,
invert
export
corr_obs
,
plat_av
,
lin_fit
,
x_lin_fit
,
y_lin_fit
,
fit_routine
export
meff
,
dec_const_pcvc
,
comp_t0
...
...
src/juobs_linalg.jl
View file @
5f368dae
...
...
@@ -123,18 +123,18 @@ function uwgevp_tot(mat_list::Vector{Matrix}, tnot::Int64; iter::Int64 = 30, eve
c_inv
=
invert
(
mat_list
[
tnot
])
for
i
=
1
:
n
aux_evals
=
uwgevp
(
mat_list
[
i
],
c_inv
,
iter
=
iter
)
push!
(
evals
,
get_diag
(
aux_evals
)
)
push!
(
evals
,
aux_evals
)
end
return
evals
else
evecs
=
Array
{
Matrix
}(
undef
,
0
)
for
i
=
2
:
n
-
4
c_inv
=
invert
(
mat_list
[
i
])
aux_evals
,
aux_evec
=
uwgevp
(
mat_list
[
i
+
3
],
c_inv
,
evec
=
evec
,
iter
=
iter
)
push!
(
evals
,
get_diag
(
aux_evals
)
)
ptilda
=
norm_evec
(
aux_evec
,
mat_list
[
i
])
m
=
uwdot
(
mat_list
[
i
],
ptilda
)
push!
(
evecs
,
m
)
c_inv
=
invert
(
mat_list
[
tnot
])
for
i
=
1
:
n
aux_evals
,
aux_evec
=
uwgevp
(
mat_list
[
i
],
c_inv
,
evec
=
evec
,
iter
=
iter
)
push!
(
evals
,
aux_evals
)
#
ptilda = norm_evec(aux_evec, mat_list[i])
#
m = uwdot(mat_list[i], ptilda)
push!
(
evecs
,
aux_evec
)
end
return
evals
,
evecs
end
...
...
@@ -181,13 +181,13 @@ function uwevp(a::Matrix{uwreal}; iter = 30, evec = false)
a
=
uwdot
(
r_k
,
q_k
)
u
=
uwdot
(
u
,
q_k
)
end
return
a
,
u
return
get_diag
(
a
)
,
u
else
for
k
in
1
:
iter
q_k
,
r_k
=
qr
(
a
)
a
=
uwdot
(
r_k
,
q_k
)
end
return
a
return
get_diag
(
a
)
end
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