Loading...
Searching...
No Matches
Classes | Namespaces | Functions
loss_ptr.h File Reference

A shared_ptr wrapper for losses. More...

#include "concepts/loss_ptr.h"
#include "concepts/macro.h"
#include "core/error.h"
#include "bbm/loss.h"

Go to the source code of this file.

Classes

class  loss_ptr< CONF >
 loss_ptr: a wrapper around a shared_ptr to a loss More...
 

Namespaces

namespace  bbm
 

Functions

 BBM_CHECK_CONCEPT (concepts::loss_ptr, loss_ptr< config >)
 
template<typename LOSSTYPE , typename... ARGS>
requires concepts::loss<LOSSTYPE>
loss_ptr< get_config< LOSSTYPE > > make_loss_ptr (ARGS &&... args)
 Helper method for making loss_ptr from a LOSS (new construction)
 
template<typename LOSSFUNC , typename... ARGS>
requires (concepts::lossfunction<LOSSFUNC> && !concepts::loss<LOSSFUNC>)
loss_ptr< get_config< LOSSFUNC > > make_loss_ptr (ARGS &&... args)
 Helper method for making a loss_ptr from a LOSS FUNCTION (new construction)
 
template<typename LOSSTYPE >
requires (concepts::loss<LOSSTYPE> && !concepts::loss_ptr<LOSSTYPE>)
loss_ptr< get_config< LOSSTYPE > > make_loss_ptr (const LOSSTYPE &arg)
 Helper method for making a loss_ptr from a LOSS (copy construction)
 
template<typename LOSSFUNC >
requires (concepts::lossfunction<LOSSFUNC> && !concepts::loss<LOSSFUNC>)
loss_ptr< get_config< LOSSFUNC > > make_loss_ptr (const LOSSFUNC &arg)
 Helper method for making a loss_ptr from a LOSS FUNCTION (copy constructor)
 
template<typename CONF >
requires concepts::config<CONF>
loss_ptr< CONF > make_loss_ptr (const loss_ptr< CONF > &arg)
 Helper method for making loss_ptr (avoid loss_ptr of loss_ptr)
 

Detailed Description

A shared_ptr wrapper for losses.

Implements: concepts::loss_ptr