Commit bfaf64b0 authored by David Frank's avatar 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
#include "Problem.h" #include "Problem.h"
#include "Scaling.h" #include "Scaling.h"
#include "Logger.h"
#include "Timer.h"
namespace elsa namespace elsa
{ {
...@@ -150,6 +152,9 @@ namespace elsa ...@@ -150,6 +152,9 @@ namespace elsa
template <typename data_t> template <typename data_t>
data_t Problem<data_t>::getLipschitzConstantImpl(index_t nIterations) const 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()) { if (_lipschitzConstant.has_value()) {
return _lipschitzConstant.value(); return _lipschitzConstant.value();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment