G+Smo  23.12.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsGradientDescent< T, StepSize, Callback, FiniteDifferences > Class Template Reference

Detailed Description

template<typename T = real_t, typename StepSize = gdc::BarzilaiBorwein<T>, typename Callback = gdc::NoCallback<T>, typename FiniteDifferences = gdc::CentralDifferences<T>>
class gismo::gsGradientDescent< T, StepSize, Callback, FiniteDifferences >

This class describes the gradient descent method.

Template Parameters
TReal type
StepSizeStepSize option, see external/gdcpp.h
CallbackCallback option, see external/gdcpp.h
FiniteDifferencesFiniteDifferences option, see external/gdcpp.h
+ Inheritance diagram for gsGradientDescent< T, StepSize, Callback, FiniteDifferences >:
+ Collaboration diagram for gsGradientDescent< T, StepSize, Callback, FiniteDifferences >:

Public Member Functions

virtual bool intermediateCallback ()
 Callback function is executed after every iteration. Returning false causes premature termination of the optimization.
 

Protected Attributes

gsMatrix< T > m_curDesign
 Current design variables (and starting point )
 
gsOptionList m_options
 Options.