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
ift
NIFTy
Commits
e3ab3191
Commit
e3ab3191
authored
Oct 10, 2017
by
Martin Reinecke
Browse files
compactification
parent
10a02d87
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty/minimization/vl_bfgs.py
View file @
e3ab3191
...
...
@@ -147,21 +147,16 @@ class InformationStore(object):
-------
result : List
List of new basis vectors.
"""
result
=
[]
m
=
self
.
history_length
mmax
=
self
.
max_history_length
k
=
self
.
k
s
=
self
.
s
for
i
in
range
(
m
):
result
.
append
(
s
[(
k
-
m
+
i
)
%
mmax
])
result
.
append
(
s
elf
.
s
[(
self
.
k
-
m
+
i
)
%
mmax
])
y
=
self
.
y
for
i
in
range
(
m
):
result
.
append
(
y
[(
k
-
m
+
i
)
%
mmax
])
result
.
append
(
self
.
y
[(
self
.
k
-
m
+
i
)
%
mmax
])
result
.
append
(
self
.
last_gradient
)
...
...
@@ -211,7 +206,6 @@ class InformationStore(object):
result
[
2
*
m
,
m
+
i
]
=
result
[
m
+
i
,
2
*
m
]
=
ygrad_i
result
[
2
*
m
,
2
*
m
]
=
self
.
last_gradient
.
norm
()
return
result
@
property
...
...
Write
Preview
Supports
Markdown
0%
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