SOPT
Sparse OPTimisation
Public Member Functions | List of all members
sopt::details::ProjectPositiveQuadrant< SCALAR > Class Template Reference

Expression to create projection onto positive orthant. More...

#include <maths.h>

Public Member Functions

SCALAR operator() (const SCALAR &value) const
 

Detailed Description

template<typename SCALAR>
class sopt::details::ProjectPositiveQuadrant< SCALAR >

Expression to create projection onto positive orthant.

Definition at line 37 of file maths.h.

Member Function Documentation

◆ operator()()

template<typename SCALAR >
SCALAR sopt::details::ProjectPositiveQuadrant< SCALAR >::operator() ( const SCALAR &  value) const
inline

Definition at line 39 of file maths.h.

39 { return std::max(value, SCALAR(0)); }

Referenced by sopt::details::ProjectPositiveQuadrant< std::complex< SCALAR > >::operator()().


The documentation for this class was generated from the following file: