Loading...
Searching...
No Matches
ndcurves::quadratic_variable< Numeric > Struct Template Reference

#include <ndcurves/quadratic_variable.h>

Public Types

typedef Eigen::Matrix< Numeric, Eigen::Dynamic, Eigen::Dynamic > matrix_x_t
 
typedef Eigen::Matrix< Numeric, Eigen::Dynamic, 1 > point_t
 
typedef quadratic_variable< Numeric > quadratic_variable_t
 

Public Member Functions

 quadratic_variable ()
 
 quadratic_variable (const matrix_x_t &A, const point_t &b, const Numeric c=0)
 
 quadratic_variable (const point_t &b, const Numeric c=0)
 
Numeric operator() (const Eigen::Ref< const point_t > &val) const
 
quadratic_variableoperator+= (const quadratic_variable &w1)
 
quadratic_variableoperator-= (const quadratic_variable &w1)
 
quadratic_variableoperator/= (const double d)
 
quadratic_variableoperator*= (const double d)
 
const matrix_x_tA () const
 
const point_tb () const
 
const Numeric c () const
 
bool isZero () const
 
std::size_t size () const
 

Static Public Member Functions

static quadratic_variable_t Zero (size_t=0)
 

Member Typedef Documentation

◆ matrix_x_t

template<typename Numeric = double>
typedef Eigen::Matrix<Numeric, Eigen::Dynamic, Eigen::Dynamic> ndcurves::quadratic_variable< Numeric >::matrix_x_t

◆ point_t

template<typename Numeric = double>
typedef Eigen::Matrix<Numeric, Eigen::Dynamic, 1> ndcurves::quadratic_variable< Numeric >::point_t

◆ quadratic_variable_t

template<typename Numeric = double>
typedef quadratic_variable<Numeric> ndcurves::quadratic_variable< Numeric >::quadratic_variable_t

Constructor & Destructor Documentation

◆ quadratic_variable() [1/3]

template<typename Numeric = double>
ndcurves::quadratic_variable< Numeric >::quadratic_variable ( )
inline

◆ quadratic_variable() [2/3]

template<typename Numeric = double>
ndcurves::quadratic_variable< Numeric >::quadratic_variable ( const matrix_x_t A,
const point_t b,
const Numeric  c = 0 
)
inline

◆ quadratic_variable() [3/3]

template<typename Numeric = double>
ndcurves::quadratic_variable< Numeric >::quadratic_variable ( const point_t b,
const Numeric  c = 0 
)
inline

Member Function Documentation

◆ A()

template<typename Numeric = double>
const matrix_x_t & ndcurves::quadratic_variable< Numeric >::A ( ) const
inline

◆ b()

template<typename Numeric = double>
const point_t & ndcurves::quadratic_variable< Numeric >::b ( ) const
inline

◆ c()

template<typename Numeric = double>
const Numeric ndcurves::quadratic_variable< Numeric >::c ( ) const
inline

◆ isZero()

template<typename Numeric = double>
bool ndcurves::quadratic_variable< Numeric >::isZero ( ) const
inline

◆ operator()()

template<typename Numeric = double>
Numeric ndcurves::quadratic_variable< Numeric >::operator() ( const Eigen::Ref< const point_t > &  val) const
inline

◆ operator*=()

template<typename Numeric = double>
quadratic_variable & ndcurves::quadratic_variable< Numeric >::operator*= ( const double  d)
inline

◆ operator+=()

template<typename Numeric = double>
quadratic_variable & ndcurves::quadratic_variable< Numeric >::operator+= ( const quadratic_variable< Numeric > &  w1)
inline

◆ operator-=()

template<typename Numeric = double>
quadratic_variable & ndcurves::quadratic_variable< Numeric >::operator-= ( const quadratic_variable< Numeric > &  w1)
inline

◆ operator/=()

template<typename Numeric = double>
quadratic_variable & ndcurves::quadratic_variable< Numeric >::operator/= ( const double  d)
inline

◆ size()

template<typename Numeric = double>
std::size_t ndcurves::quadratic_variable< Numeric >::size ( ) const
inline

◆ Zero()

template<typename Numeric = double>
static quadratic_variable_t ndcurves::quadratic_variable< Numeric >::Zero ( size_t  = 0)
inlinestatic

The documentation for this struct was generated from the following files: