Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
elpa
elpa
Commits
17631dcb
Commit
17631dcb
authored
Jun 12, 2019
by
Pavel Kus
Browse files
replacing the HH transformation by matrix multiplication
parent
4f7edb65
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/elpa2/kernels/blas_block4_template.F90
View file @
17631dcb
...
...
@@ -118,59 +118,7 @@
! TODO lets see how much does it matter
s_mat
=
matmul
(
h_mat
,
transpose
(
h_mat
))
! Do the Householder transformations
a_1_1
(
1
:
nq
)
=
q
(
1
:
nq
,
4
)
a_2_1
(
1
:
nq
)
=
q
(
1
:
nq
,
3
)
a_3_1
(
1
:
nq
)
=
q
(
1
:
nq
,
2
)
a_4_1
(
1
:
nq
)
=
q
(
1
:
nq
,
1
)
h_2_1
=
hh
(
2
,
2
)
h_3_2
=
hh
(
2
,
3
)
h_3_1
=
hh
(
3
,
3
)
h_4_3
=
hh
(
2
,
4
)
h_4_2
=
hh
(
3
,
4
)
h_4_1
=
hh
(
4
,
4
)
w_comb
(
1
:
nq
,
4
)
=
a_3_1
(
1
:
nq
)
*
h_4_3
+
a_4_1
(
1
:
nq
)
w_comb
(
1
:
nq
,
4
)
=
a_2_1
(
1
:
nq
)
*
h_4_2
+
w_comb
(
1
:
nq
,
4
)
w_comb
(
1
:
nq
,
4
)
=
a_1_1
(
1
:
nq
)
*
h_4_1
+
w_comb
(
1
:
nq
,
4
)
w_comb
(
1
:
nq
,
3
)
=
a_2_1
(
1
:
nq
)
*
h_3_2
+
a_3_1
(
1
:
nq
)
w_comb
(
1
:
nq
,
3
)
=
a_1_1
(
1
:
nq
)
*
h_3_1
+
w_comb
(
1
:
nq
,
3
)
w_comb
(
1
:
nq
,
2
)
=
a_1_1
(
1
:
nq
)
*
h_2_1
+
a_2_1
(
1
:
nq
)
w_comb
(
1
:
nq
,
1
)
=
a_1_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try again
or
attach a new 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