Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
IP
elsa
Commits
bfaf64b0
Commit
bfaf64b0
authored
Mar 17, 2022
by
David Frank
Browse files
Add logging and timing to calculation of Lipschitz constant
parent
cd97ea01
Pipeline
#849907
passed with stages
in 56 minutes and 29 seconds
Changes
1
Pipelines
9
Hide whitespace changes
Inline
Side-by-side
elsa/problems/Problem.cpp
View file @
bfaf64b0
#include
"Problem.h"
#include
"Scaling.h"
#include
"Logger.h"
#include
"Timer.h"
namespace
elsa
{
...
...
@@ -150,6 +152,9 @@ namespace elsa
template
<
typename
data_t
>
data_t
Problem
<
data_t
>::
getLipschitzConstantImpl
(
index_t
nIterations
)
const
{
Timer
guard
(
"Problem"
,
"Calculating Lipschitz constant"
);
Logger
::
get
(
"Problem"
)
->
info
(
"Calculating Lipschitz constant"
);
if
(
_lipschitzConstant
.
has_value
())
{
return
_lipschitzConstant
.
value
();
}
...
...
Write
Preview
Supports
Markdown
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