alpaqa 1.0.0a8
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
LBFGSStorage< Conf > Struct Template Reference

#include <alpaqa/include/alpaqa/accelerators/lbfgs.hpp>

Detailed Description

template<Config Conf = DefaultConfig>
struct alpaqa::LBFGSStorage< Conf >

Layout:

┌───── 2 m ─────┐
┌ ┌───┬───┬───┬───┐
│ │ │ │ │ │
│ │ sysy
n+1 │ │ │ │ │ │
│ ├───┼───┼───┼───┤
│ │ ραρα
└ └───┴───┴───┴───┘
length_t n() const
Get the size of the s and y vectors in the buffer.
real_t & α(index_t i)
real_t & ρ(index_t i)

Definition at line 76 of file accelerators/lbfgs.hpp.

+ Collaboration diagram for LBFGSStorage< Conf >:

Public Types

using storage_t = mat
 

Public Member Functions

void resize (length_t n, length_t history)
 Re-allocate storage for a problem with a different size.
 
length_t n () const
 Get the size of the s and y vectors in the buffer.
 
length_t history () const
 Get the number of previous vectors s and y stored in the buffer.
 
auto s (index_t i)
 
auto s (index_t i) const
 
auto y (index_t i)
 
auto y (index_t i) const
 
real_tρ (index_t i)
 
real_tρ (index_t i) const
 
real_tα (index_t i)
 
real_tα (index_t i) const
 

Public Attributes

storage_t sto
 

Member Typedef Documentation

◆ storage_t

using storage_t = mat

Definition at line 100 of file accelerators/lbfgs.hpp.

Member Function Documentation

◆ resize()

void resize ( length_t  n,
length_t  history 
)

Re-allocate storage for a problem with a different size.

Definition at line 221 of file lbfgs.tpp.

◆ n()

length_t n ( ) const
inline

Get the size of the s and y vectors in the buffer.

Definition at line 83 of file accelerators/lbfgs.hpp.

+ Here is the caller graph for this function:

◆ history()

length_t history ( ) const
inline

Get the number of previous vectors s and y stored in the buffer.

Definition at line 85 of file accelerators/lbfgs.hpp.

+ Here is the caller graph for this function:

◆ s() [1/2]

auto s ( index_t  i)
inline

Definition at line 87 of file accelerators/lbfgs.hpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ s() [2/2]

auto s ( index_t  i) const
inline

Definition at line 88 of file accelerators/lbfgs.hpp.

+ Here is the call graph for this function:

◆ y() [1/2]

auto y ( index_t  i)
inline

Definition at line 91 of file accelerators/lbfgs.hpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ y() [2/2]

auto y ( index_t  i) const
inline

Definition at line 92 of file accelerators/lbfgs.hpp.

+ Here is the call graph for this function:

◆ ρ() [1/2]

real_t & ρ ( index_t  i)
inline

Definition at line 95 of file accelerators/lbfgs.hpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ρ() [2/2]

real_t & ρ ( index_t  i) const
inline

Definition at line 96 of file accelerators/lbfgs.hpp.

+ Here is the call graph for this function:

◆ α() [1/2]

real_t & α ( index_t  i)
inline

Definition at line 97 of file accelerators/lbfgs.hpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ α() [2/2]

real_t & α ( index_t  i) const
inline

Definition at line 98 of file accelerators/lbfgs.hpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ sto

storage_t sto
mutable

Definition at line 102 of file accelerators/lbfgs.hpp.


The documentation for this struct was generated from the following files: