proxsuite 0.7.2
The Advanced Proximal Optimization Toolbox
Loading...
Searching...
No Matches
proxsuite::helpers Namespace Reference

Classes

struct  infinite_bound
struct  InstructionSet

Functions

template<typename T, typename Scalar>
auto at_most (T const &expr, const Scalar value) PROXSUITE_DEDUCE_RET((expr.array()< value).select(expr
 Returns the part of the expression which is lower than value.
template<typename T, typename Scalar>
auto at_least (T const &expr, const Scalar value) PROXSUITE_DEDUCE_RET((expr.array() > value).select(expr
 Returns the part of the expression which is greater than value.
template<typename T>
auto positive_part (T const &expr) PROXSUITE_DEDUCE_RET((expr.array() > 0).select(expr
 Returns the positive part of an expression.
template<typename T>
auto negative_part (T const &expr) PROXSUITE_DEDUCE_RET((expr.array()< 0).select(expr
 Returns the negative part of an expression.
template<typename Condition, typename T, typename Scalar>
auto select (Condition const &condition, T const &expr, const Scalar value) PROXSUITE_DEDUCE_RET((condition).select(expr
 Select the components of the expression if the condition is fullfiled. Otherwise, set the component to value.
std::string printVersion (const std::string &delimiter=".")
bool checkVersionAtLeast (signed int major_version, signed int minor_version, signed int patch_version)

Function Documentation

◆ at_most()

template<typename T, typename Scalar>
auto proxsuite::helpers::at_most(T const &expr,
const Scalarvalue )

Returns the part of the expression which is lower than value.

◆ at_least()

template<typename T, typename Scalar>
auto proxsuite::helpers::at_least(T const &expr,
const Scalarvalue )

Returns the part of the expression which is greater than value.

◆ positive_part()

template<typename T>
auto proxsuite::helpers::positive_part(T const &expr)

Returns the positive part of an expression.

◆ negative_part()

template<typename T>
auto proxsuite::helpers::negative_part(T const &expr)

Returns the negative part of an expression.

◆ select()

template<typename Condition, typename T, typename Scalar>
auto proxsuite::helpers::select(Condition const &condition,
T const &expr,
const Scalarvalue )

Select the components of the expression if the condition is fullfiled. Otherwise, set the component to value.

◆ printVersion()

std::string proxsuite::helpers::printVersion(const std::string &delimiter = ".")
inline

Definition at line 19 of file version.hpp.

◆ checkVersionAtLeast()

bool proxsuite::helpers::checkVersionAtLeast(signed intmajor_version,
signed intminor_version,
signed intpatch_version )
inline

Definition at line 28 of file version.hpp.