aligator  0.10.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
aligator::math Namespace Reference

Math utilities. More...

Functions

template<typename T >
bool check_value (const std::vector< T > &xs)
 Check if a std::vector of numerical objects has invalid values.
 
template<typename T >
void setZero (std::vector< T > &mats)
 
template<typename A , typename B , typename OutType , typename Scalar >
void vectorMultiplyAdd (const std::vector< A > &a, const std::vector< B > &b, std::vector< OutType > &c, const Scalar alpha)
 Compute zi = xi + alpha * yi for all i.
 

Detailed Description

Math utilities.

Function Documentation

◆ check_value()

template<typename T >
bool aligator::math::check_value ( const std::vector< T > & xs)

Check if a std::vector of numerical objects has invalid values.

Definition at line 51 of file math.hpp.

◆ setZero()

template<typename T >
void aligator::math::setZero ( std::vector< T > & mats)

Definition at line 60 of file math.hpp.

◆ vectorMultiplyAdd()

template<typename A , typename B , typename OutType , typename Scalar >
void aligator::math::vectorMultiplyAdd ( const std::vector< A > & a,
const std::vector< B > & b,
std::vector< OutType > & c,
const Scalar alpha )

Compute zi = xi + alpha * yi for all i.

Definition at line 68 of file math.hpp.