Loading...
Searching...
No Matches
opennn::detail Namespace Reference

Classes

class  ParameterStore
 

Functions

void throw_formatted (string_view message, const source_location &loc=source_location::current())
 
template<typename... Args>
void throw_formatted (format_string< Args... > message, Args &&... args)
 
template<typename Map>
void make_bounded_cache_room (Map &entries, const size_t capacity)
 
template<typename Map, typename Key>
Map::mapped_type & bounded_cache_entry (Map &entries, const Key &key, const size_t capacity)
 
Index checked_index_add (Index left, Index right, string_view operation)
 
Index checked_index_multiply (Index left, Index right, string_view operation)
 
template<typename Range, typename Projection>
Index checked_index_sum (const Range &values, Projection projection, string_view operation)
 
template<typename Uniform>
void fill_weighted_selection (const VectorR &weights, Index quota, VectorB &selected, Uniform &&uniform)
 
template<typename Accept>
bool find_damped_step (const MatrixR &curvature, const VectorR &gradient, float &damping, float factor, float lower, float upper, Eigen::Ref< VectorR > step, Accept &&accept)
 
bool bfgs_inverse_update (const Eigen::Ref< const MatrixR > &previous, const Eigen::Ref< const VectorR > &step, const Eigen::Ref< const VectorR > &gradient_change, Eigen::Ref< MatrixR > updated, Eigen::Ref< VectorR > work)
 

Function Documentation

◆ bfgs_inverse_update()

bool opennn::detail::bfgs_inverse_update ( const Eigen::Ref< const MatrixR > & previous,
const Eigen::Ref< const VectorR > & step,
const Eigen::Ref< const VectorR > & gradient_change,
Eigen::Ref< MatrixR > updated,
Eigen::Ref< VectorR > work )
inline

◆ bounded_cache_entry()

template<typename Map, typename Key>
Map::mapped_type & opennn::detail::bounded_cache_entry ( Map & entries,
const Key & key,
const size_t capacity )

◆ checked_index_add()

Index opennn::detail::checked_index_add ( Index left,
Index right,
string_view operation )
inline

◆ checked_index_multiply()

Index opennn::detail::checked_index_multiply ( Index left,
Index right,
string_view operation )
inline

◆ checked_index_sum()

template<typename Range, typename Projection>
Index opennn::detail::checked_index_sum ( const Range & values,
Projection projection,
string_view operation )

◆ fill_weighted_selection()

template<typename Uniform>
void opennn::detail::fill_weighted_selection ( const VectorR & weights,
Index quota,
VectorB & selected,
Uniform && uniform )

◆ find_damped_step()

template<typename Accept>
bool opennn::detail::find_damped_step ( const MatrixR & curvature,
const VectorR & gradient,
float & damping,
float factor,
float lower,
float upper,
Eigen::Ref< VectorR > step,
Accept && accept )

◆ make_bounded_cache_room()

template<typename Map>
void opennn::detail::make_bounded_cache_room ( Map & entries,
const size_t capacity )

◆ throw_formatted() [1/2]

template<typename... Args>
void opennn::detail::throw_formatted ( format_string< Args... > message,
Args &&... args )
inline

◆ throw_formatted() [2/2]

void opennn::detail::throw_formatted ( string_view message,
const source_location & loc = source_location::current() )
inline