ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
adore::mad::FunctionCombination_StackScalar< T > Class Template Reference

#include <alfunction.h>

Inheritance diagram for adore::mad::FunctionCombination_StackScalar< T >:
Inheritance graph
Collaboration diagram for adore::mad::FunctionCombination_StackScalar< T >:
Collaboration graph

Public Types

typedef AScalarToN< T, 2 >::DT DT
 
typedef AScalarToN< T, 2 >::CT CT
 
typedef ALFunction< T, T > SUBFUN
 
- Public Types inherited from adore::mad::AScalarToN< T, 2 >
typedef T DT
 
typedef adoreMatrix< T, N, 1 > CT
 
typedef ALFunction< DT, T > SUBFUN
 

Public Member Functions

 FunctionCombination_StackScalar (ALFunction< T, T > *a, ALFunction< T, T > *b)
 
virtual ~FunctionCombination_StackScalar ()
 
virtual adoreMatrix< T, 2, 1 > f (T x) const override
 
virtual DT limitHi () const override
 
virtual DT limitLo () const override
 
virtual void setLimits (DT lo, DT hi) override
 
virtual ALFunction< DT, CT > * clone () override
 
virtual SUBFUNdimension (int i) override
 
virtual T fi (T x, int i) const override
 
virtual void multiply (adoreMatrix< T, 0, 0 > A, int rowi, int rowj)
 
virtual void add (adoreMatrix< T, 0, 1 > c, int rowi, int rowj)
 
virtual ALFunction< DT, CT > * create_derivative () override
 
virtual void bound (const T &xmin, const T &xmax, CT &ymin, CT &ymax) override
 
- Public Member Functions inherited from adore::mad::AScalarToN< T, 2 >
void toArray (DT *xvec, T *yvec, unsigned int count)
 
void toArray (DT *xvec, T *yvec, unsigned int count, unsigned int row)
 
virtual void operator*= (adoreMatrix< T, N, N > A)
 
virtual void operator+= (adoreMatrix< T, N, 1 > b)
 
virtual void operator-= (adoreMatrix< T, N, 1 > b)
 
- Public Member Functions inherited from adore::mad::ALFunction< T, adoreMatrix< T, N, 1 > >
virtual void setLimits (T lo, T hi)=0
 
virtual void f (T *xvec, adoreMatrix< T, N, 1 > *yvec, unsigned int count) const
 
virtual void bound (const T &xmin, const T &xmax, adoreMatrix< T, N, 1 > &ymin, adoreMatrix< T, N, 1 > &ymax)=0
 
void bound (adoreMatrix< T, N, 1 > &ymin, adoreMatrix< T, N, 1 > &ymax)
 
virtual ~ALFunction ()
 
 ALFunction ()
 
const adoreMatrix< T, N, 1 > operator() (T x) const
 
bool isInDomain (T x)
 
adoreMatrix< T, N, 1 > f_bounded (T x)
 
void invalidateCachedBounds ()
 

Public Attributes

SUBFUNa
 
SUBFUNb
 

Detailed Description

template<typename T>
class adore::mad::FunctionCombination_StackScalar< T >

a helper class for combining two 1->N functions

Member Typedef Documentation

◆ CT

template<typename T >
typedef AScalarToN<T,2>::CT adore::mad::FunctionCombination_StackScalar< T >::CT

◆ DT

template<typename T >
typedef AScalarToN<T,2>::DT adore::mad::FunctionCombination_StackScalar< T >::DT

◆ SUBFUN

template<typename T >
typedef ALFunction<T,T> adore::mad::FunctionCombination_StackScalar< T >::SUBFUN

Constructor & Destructor Documentation

◆ FunctionCombination_StackScalar()

template<typename T >
adore::mad::FunctionCombination_StackScalar< T >::FunctionCombination_StackScalar ( ALFunction< T, T > *  a,
ALFunction< T, T > *  b 
)
inline
Here is the caller graph for this function:

◆ ~FunctionCombination_StackScalar()

template<typename T >
virtual adore::mad::FunctionCombination_StackScalar< T >::~FunctionCombination_StackScalar ( )
inlinevirtual

Member Function Documentation

◆ add()

template<typename T >
virtual void adore::mad::FunctionCombination_StackScalar< T >::add ( adoreMatrix< T, 0, 1 >  b,
int  rowi,
int  rowj 
)
inlinevirtual

apply operation to function subdimensions: add a vector to rowi to rowj

Implements adore::mad::AScalarToN< T, 2 >.

◆ bound()

template<typename T >
virtual void adore::mad::FunctionCombination_StackScalar< T >::bound ( const T &  xmin,
const T &  xmax,
CT ymin,
CT ymax 
)
inlineoverridevirtual
Here is the call graph for this function:

◆ clone()

template<typename T >
virtual ALFunction<DT, CT>* adore::mad::FunctionCombination_StackScalar< T >::clone ( )
inlineoverridevirtual

create a copy of child class object - is used for function operations

Implements adore::mad::ALFunction< T, adoreMatrix< T, N, 1 > >.

Here is the call graph for this function:

◆ create_derivative()

template<typename T >
virtual ALFunction<DT, CT>* adore::mad::FunctionCombination_StackScalar< T >::create_derivative ( )
inlineoverridevirtual

create a new function object, which is the derivative function

Implements adore::mad::ALFunction< T, adoreMatrix< T, N, 1 > >.

Here is the call graph for this function:

◆ dimension()

template<typename T >
virtual SUBFUN* adore::mad::FunctionCombination_StackScalar< T >::dimension ( int  i)
inlineoverridevirtual

gives access to a scalar sub-function. does not create a new object, so use clone() to get your own instance of the subfunction.

Implements adore::mad::AScalarToN< T, 2 >.

◆ f()

template<typename T >
virtual adoreMatrix<T, 2, 1> adore::mad::FunctionCombination_StackScalar< T >::f ( x) const
inlineoverridevirtual

function evaluation returns y of codomain type CT for a value x of domain type DT

Implements adore::mad::ALFunction< T, adoreMatrix< T, N, 1 > >.

Here is the call graph for this function:

◆ fi()

template<typename T >
virtual T adore::mad::FunctionCombination_StackScalar< T >::fi ( x,
int  dim 
) const
inlineoverridevirtual

scalar evaluation of function: for y-component dim

Implements adore::mad::AScalarToN< T, 2 >.

Here is the call graph for this function:

◆ limitHi()

template<typename T >
virtual DT adore::mad::FunctionCombination_StackScalar< T >::limitHi ( ) const
inlineoverridevirtual

query upper limit of the domain

Implements adore::mad::ALFunction< T, adoreMatrix< T, N, 1 > >.

Here is the call graph for this function:

◆ limitLo()

template<typename T >
virtual DT adore::mad::FunctionCombination_StackScalar< T >::limitLo ( ) const
inlineoverridevirtual

lower limit of the domain

Implements adore::mad::ALFunction< T, adoreMatrix< T, N, 1 > >.

Here is the call graph for this function:

◆ multiply()

template<typename T >
virtual void adore::mad::FunctionCombination_StackScalar< T >::multiply ( adoreMatrix< T, 0, 0 >  A,
int  rowi,
int  rowj 
)
inlinevirtual

apply operation to function sub-dimensions: multiply with matrix of lower dimension in range rowi to rowj, with A.nc==A.nr==rowj-rowi+1

Implements adore::mad::AScalarToN< T, 2 >.

◆ setLimits()

template<typename T >
virtual void adore::mad::FunctionCombination_StackScalar< T >::setLimits ( DT  lo,
DT  hi 
)
inlineoverridevirtual
Here is the call graph for this function:

Member Data Documentation

◆ a

template<typename T >
SUBFUN* adore::mad::FunctionCombination_StackScalar< T >::a

◆ b

template<typename T >
SUBFUN* adore::mad::FunctionCombination_StackScalar< T >::b

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