codac 1.5.6
Loading...
Searching...
No Matches
codac2_SampledTraj_operations.h File Reference
#include "codac2_SampledTraj.h"
#include "codac2_math.h"
Include dependency graph for codac2_SampledTraj_operations.h:

Go to the source code of this file.

Functions

template<typename T>
const SampledTraj< T > & codac2::operator+ (const SampledTraj< T > &x1)
 \(x1(\cdot)\)
 
template<typename T>
SampledTraj< T > codac2::operator+ (const SampledTraj< T > &x1, const SampledTraj< T > &x2) macro_binary_traj_traj(operator_add< T >)
 \(x_1(\cdot)+x_2(\cdot)\)
 
template<typename T, typename Q>
SampledTraj< T > codac2::operator+ (const SampledTraj< T > &x1, const Q &x2) macro_binary_traj_real(operator_add< T >)
 \(x_1(\cdot)+x_2\)
 
template<typename T, typename Q>
SampledTraj< T > codac2::operator+ (const Q &x1, const SampledTraj< T > &x2) macro_binary_real_traj(operator_add< T >)
 \(x+x_2(\cdot)\)
 
template<typename T, typename Q>
SampledTraj< T > & codac2::operator+= (SampledTraj< T > &x1, const Q &x2) macro_member_binary_traj_real(operator_add< T >)
 Operates +=.
 
template<typename T>
SampledTraj< T > & codac2::operator+= (SampledTraj< T > &x1, const SampledTraj< T > &x2) macro_member_binary_traj_traj(operator_add< T >)
 Operates +=.
 
template<typename T>
SampledTraj< T > codac2::operator- (const SampledTraj< T > &x1)
 \(-x_1(\cdot)\)
 
template<typename T>
SampledTraj< T > codac2::operator- (const SampledTraj< T > &x1, const SampledTraj< T > &x2) macro_binary_traj_traj(operator_sub< T >)
 \(x_1(\cdot)-x_2(\cdot)\)
 
template<typename T, typename Q>
SampledTraj< T > codac2::operator- (const SampledTraj< T > &x1, const Q &x2) macro_binary_traj_real(operator_sub< T >)
 \(x_1(\cdot)-x_2\)
 
template<typename T, typename Q>
SampledTraj< T > codac2::operator- (const Q &x1, const SampledTraj< T > &x2) macro_binary_real_traj(operator_sub< T >)
 \(x-x_2(\cdot)\)
 
template<typename T, typename Q>
SampledTraj< T > & codac2::operator-= (SampledTraj< T > &x1, const Q &x2) macro_member_binary_traj_real(operator_sub< T >)
 Operates -=.
 
template<typename T>
SampledTraj< T > & codac2::operator-= (SampledTraj< T > &x1, const SampledTraj< T > &x2) macro_member_binary_traj_traj(operator_sub< T >)
 Operates -=.
 
template<typename T>
requires (!std::is_same_v<T,double>)
SampledTraj< T > codac2::operator* (double x1, const SampledTraj< T > &x2) macro_binary_real_traj(operator_mul_scal< T >)
 \(x_1\cdot x_2(\cdot)\)
 
template<typename T>
requires (!std::is_same_v<T,double>)
SampledTraj< T > codac2::operator* (const SampledTraj< T > &x1, double x2) macro_binary_traj_real(operator_mul_scal< T >)
 \(x_1(\cdot)\cdot x_2\)
 
template<typename T>
SampledTraj< T > codac2::operator* (const SampledTraj< T > &x1, const SampledTraj< T > &x2) macro_binary_traj_traj(operator_mul< T >)
 \(x_1(\cdot)\cdot x_2(\cdot)\)
 
template<typename T, typename Q>
SampledTraj< T > codac2::operator* (const SampledTraj< T > &x1, const Q &x2) macro_binary_traj_real(operator_mul< T >)
 \(x_1(\cdot)\cdot x_2\)
 
template<typename T, typename Q>
SampledTraj< T > codac2::operator* (const Q &x1, const SampledTraj< T > &x2) macro_binary_real_traj(operator_mul< T >)
 \(x\cdot x_2(\cdot)\)
 
SampledTraj< Vector > codac2::operator* (const SampledTraj< Matrix > &x1, const SampledTraj< Vector > &x2) macro_binary_traj_traj(operator_mul_vec)
 \(x_1(\cdot)\cdot x_2\)
 
template<typename T, typename Q>
SampledTraj< T > & codac2::operator*= (SampledTraj< T > &x1, const Q &x2) macro_member_binary_traj_real(operator_mul< T >)
 Operates *=.
 
template<typename T>
SampledTraj< T > & codac2::operator*= (SampledTraj< T > &x1, const SampledTraj< T > &x2) macro_member_binary_traj_traj(operator_mul< T >)
 Operates *=.
 
template<typename T>
requires (!std::is_same_v<T,double>)
SampledTraj< T > codac2::operator/ (const SampledTraj< T > &x1, double x2) macro_binary_traj_real(operator_div_scal< T >)
 \(x_2(\cdot)/x_1\)
 
template<typename T>
SampledTraj< T > codac2::operator/ (const SampledTraj< T > &x1, const SampledTraj< T > &x2) macro_binary_traj_traj(operator_div< T >)
 \(x_1(\cdot)/x_2(\cdot)\)
 
template<typename T, typename Q>
SampledTraj< T > codac2::operator/ (const SampledTraj< T > &x1, const Q &x2) macro_binary_traj_real(operator_div< T >)
 \(x_1(\cdot)/x_2\)
 
template<typename T, typename Q>
SampledTraj< T > codac2::operator/ (const Q &x1, const SampledTraj< T > &x2) macro_binary_real_traj(operator_div< T >)
 \(x/x_2(\cdot)\)
 
template<typename T, typename Q>
SampledTraj< T > & codac2::operator/= (SampledTraj< T > &x1, const Q &x2) macro_member_binary_traj_real(operator_div< T >)
 Operates /=.
 
template<typename T>
SampledTraj< T > & codac2::operator/= (SampledTraj< T > &x1, const SampledTraj< T > &x2) macro_member_binary_traj_traj(operator_div< T >)
 Operates /=.
 
SampledTraj< double > codac2::sqr (const SampledTraj< double > &x1)
 \(x^2(\cdot)\)
 
SampledTraj< double > codac2::sqrt (const SampledTraj< double > &x1)
 \(\sqrt{x_1(\cdot)}\)
 
SampledTraj< double > codac2::pow (const SampledTraj< double > &x1, int x2)
 \(x^x_2(\cdot)\)
 
SampledTraj< double > codac2::pow (const SampledTraj< double > &x1, double x2)
 \(x^x_2(\cdot)\)
 
SampledTraj< double > codac2::root (const SampledTraj< double > &x1, int x2)
 \(x^x_2(\cdot)\)
 
SampledTraj< double > codac2::exp (const SampledTraj< double > &x1)
 \(\exp(x_1(\cdot))\)
 
SampledTraj< double > codac2::log (const SampledTraj< double > &x1)
 \(\log(x_1(\cdot))\)
 
SampledTraj< double > codac2::cos (const SampledTraj< double > &x1)
 \(\cos(x_1(\cdot))\)
 
SampledTraj< double > codac2::sin (const SampledTraj< double > &x1)
 \(\sin(x_1(\cdot))\)
 
SampledTraj< double > codac2::tan (const SampledTraj< double > &x1)
 \(\tan(x_1(\cdot))\)
 
SampledTraj< double > codac2::acos (const SampledTraj< double > &x1)
 \(\arccos(x_1(\cdot))\)
 
SampledTraj< double > codac2::asin (const SampledTraj< double > &x1)
 \(\arcsin(x_1(\cdot))\)
 
SampledTraj< double > codac2::atan (const SampledTraj< double > &x1)
 \(\arctan(x_1(\cdot))\)
 
SampledTraj< double > codac2::atan2 (const SampledTraj< double > &x1, const SampledTraj< double > &x2)
 \(\mathrm{arctan2}(x_1(\cdot),x_2(\cdot))\)
 
SampledTraj< double > codac2::atan2 (const SampledTraj< double > &x1, double x2)
 \(\mathrm{arctan2}(x_1(\cdot),x_2)\)
 
SampledTraj< double > codac2::atan2 (double x1, const SampledTraj< double > &x2)
 \(\mathrm{arctan2}(x_1, x_2(\cdot))\)
 
SampledTraj< double > codac2::cosh (const SampledTraj< double > &x1)
 \(\cosh(x_1(\cdot))\)
 
SampledTraj< double > codac2::sinh (const SampledTraj< double > &x1)
 \(\sinh(x_1(\cdot))\)
 
SampledTraj< double > codac2::tanh (const SampledTraj< double > &x1)
 \(\tanh(x_1(\cdot))\)
 
SampledTraj< double > codac2::acosh (const SampledTraj< double > &x1)
 \(\mathrm{arccosh}(x_1(\cdot))\)
 
SampledTraj< double > codac2::asinh (const SampledTraj< double > &x1)
 \(\mathrm{arcsinh}(x_1(\cdot))\)
 
SampledTraj< double > codac2::atanh (const SampledTraj< double > &x1)
 \(\mathrm{arctanh}(x_1(\cdot))\)
 
SampledTraj< double > codac2::abs (const SampledTraj< double > &x1)
 \(\mid x_1(\cdot)\mid\)
 
SampledTraj< double > codac2::min (const SampledTraj< double > &x1, const SampledTraj< double > &x2)
 \(\min(x_1(\cdot),x_2(\cdot))\)
 
SampledTraj< double > codac2::min (const SampledTraj< double > &x1, double x2)
 \(\min(x_1(\cdot),x_2)\)
 
SampledTraj< double > codac2::min (double x1, const SampledTraj< double > &x2)
 \(\min(x_1, x_2(\cdot))\)
 
SampledTraj< double > codac2::max (const SampledTraj< double > &x1, const SampledTraj< double > &x2)
 \(\max(x_1(\cdot),x_2(\cdot))\)
 
SampledTraj< double > codac2::max (const SampledTraj< double > &x1, double x2)
 \(\max(x_1(\cdot),x_2)\)
 
SampledTraj< double > codac2::max (double x1, const SampledTraj< double > &x2)
 \(\max(x_1, x_2(\cdot))\)
 

Detailed Description

Date
2024
Author
Simon Rohou
License: GNU Lesser General Public License (LGPL)

Function Documentation

◆ operator+() [1/4]

template<typename T>
const SampledTraj< T > & codac2::operator+ ( const SampledTraj< T > & x1)
inline

\(x1(\cdot)\)

Parameters
x1
Returns
trajectory output
107 {
108 return x1;
109 }

◆ operator+() [2/4]

template<typename T>
SampledTraj< T > codac2::operator+ ( const SampledTraj< T > & x1,
const SampledTraj< T > & x2 )
inline

\(x_1(\cdot)+x_2(\cdot)\)

Parameters
x1
x2
Returns
trajectory output

◆ operator+() [3/4]

template<typename T, typename Q>
SampledTraj< T > codac2::operator+ ( const SampledTraj< T > & x1,
const Q & x2 )
inline

\(x_1(\cdot)+x_2\)

Parameters
x1
x2
Returns
trajectory output

◆ operator+() [4/4]

template<typename T, typename Q>
SampledTraj< T > codac2::operator+ ( const Q & x1,
const SampledTraj< T > & x2 )
inline

\(x+x_2(\cdot)\)

Parameters
x1
x2
Returns
trajectory output

◆ operator+=() [1/2]

template<typename T, typename Q>
SampledTraj< T > & codac2::operator+= ( SampledTraj< T > & x1,
const Q & x2 )
inline

Operates +=.

Parameters
x1
x2
Returns
updated output

◆ operator+=() [2/2]

template<typename T>
SampledTraj< T > & codac2::operator+= ( SampledTraj< T > & x1,
const SampledTraj< T > & x2 )
inline

Operates +=.

Parameters
x1
x2
Returns
updated output

◆ operator-() [1/4]

template<typename T>
SampledTraj< T > codac2::operator- ( const SampledTraj< T > & x1)
inline

\(-x_1(\cdot)\)

Parameters
x1
Returns
trajectory output
163 {
164 return -1.*x1;
165 }

◆ operator-() [2/4]

template<typename T>
SampledTraj< T > codac2::operator- ( const SampledTraj< T > & x1,
const SampledTraj< T > & x2 )
inline

\(x_1(\cdot)-x_2(\cdot)\)

Parameters
x1
x2
Returns
trajectory output

◆ operator-() [3/4]

template<typename T, typename Q>
SampledTraj< T > codac2::operator- ( const SampledTraj< T > & x1,
const Q & x2 )
inline

\(x_1(\cdot)-x_2\)

Parameters
x1
x2
Returns
trajectory output

◆ operator-() [4/4]

template<typename T, typename Q>
SampledTraj< T > codac2::operator- ( const Q & x1,
const SampledTraj< T > & x2 )
inline

\(x-x_2(\cdot)\)

Parameters
x1
x2
Returns
trajectory output

◆ operator-=() [1/2]

template<typename T, typename Q>
SampledTraj< T > & codac2::operator-= ( SampledTraj< T > & x1,
const Q & x2 )
inline

Operates -=.

Parameters
x1
x2
Returns
updated output

◆ operator-=() [2/2]

template<typename T>
SampledTraj< T > & codac2::operator-= ( SampledTraj< T > & x1,
const SampledTraj< T > & x2 )
inline

Operates -=.

Parameters
x1
x2
Returns
updated output

◆ operator*() [1/6]

template<typename T>
requires (!std::is_same_v<T,double>)
SampledTraj< T > codac2::operator* ( double x1,
const SampledTraj< T > & x2 )
inline

\(x_1\cdot x_2(\cdot)\)

Parameters
x1
x2
Returns
trajectory output

◆ operator*() [2/6]

template<typename T>
requires (!std::is_same_v<T,double>)
SampledTraj< T > codac2::operator* ( const SampledTraj< T > & x1,
double x2 )
inline

\(x_1(\cdot)\cdot x_2\)

Parameters
x1
x2
Returns
trajectory output

◆ operator*() [3/6]

template<typename T>
SampledTraj< T > codac2::operator* ( const SampledTraj< T > & x1,
const SampledTraj< T > & x2 )
inline

\(x_1(\cdot)\cdot x_2(\cdot)\)

Parameters
x1
x2
Returns
trajectory output

◆ operator*() [4/6]

template<typename T, typename Q>
SampledTraj< T > codac2::operator* ( const SampledTraj< T > & x1,
const Q & x2 )
inline

\(x_1(\cdot)\cdot x_2\)

Parameters
x1
x2
Returns
trajectory output

◆ operator*() [5/6]

template<typename T, typename Q>
SampledTraj< T > codac2::operator* ( const Q & x1,
const SampledTraj< T > & x2 )
inline

\(x\cdot x_2(\cdot)\)

Parameters
x1
x2
Returns
trajectory output

◆ operator*() [6/6]

SampledTraj< Vector > codac2::operator* ( const SampledTraj< Matrix > & x1,
const SampledTraj< Vector > & x2 )
inline

\(x_1(\cdot)\cdot x_2\)

Parameters
x1
x2
Returns
trajectory output

◆ operator*=() [1/2]

template<typename T, typename Q>
SampledTraj< T > & codac2::operator*= ( SampledTraj< T > & x1,
const Q & x2 )
inline

Operates *=.

Parameters
x1
x2
Returns
updated output

◆ operator*=() [2/2]

template<typename T>
SampledTraj< T > & codac2::operator*= ( SampledTraj< T > & x1,
const SampledTraj< T > & x2 )
inline

Operates *=.

Parameters
x1
x2
Returns
updated output

◆ operator/() [1/4]

template<typename T>
requires (!std::is_same_v<T,double>)
SampledTraj< T > codac2::operator/ ( const SampledTraj< T > & x1,
double x2 )
inline

\(x_2(\cdot)/x_1\)

Parameters
x1
x2
Returns
trajectory output

◆ operator/() [2/4]

template<typename T>
SampledTraj< T > codac2::operator/ ( const SampledTraj< T > & x1,
const SampledTraj< T > & x2 )
inline

\(x_1(\cdot)/x_2(\cdot)\)

Parameters
x1
x2
Returns
trajectory output

◆ operator/() [3/4]

template<typename T, typename Q>
SampledTraj< T > codac2::operator/ ( const SampledTraj< T > & x1,
const Q & x2 )
inline

\(x_1(\cdot)/x_2\)

Parameters
x1
x2
Returns
trajectory output

◆ operator/() [4/4]

template<typename T, typename Q>
SampledTraj< T > codac2::operator/ ( const Q & x1,
const SampledTraj< T > & x2 )
inline

\(x/x_2(\cdot)\)

Parameters
x1
x2
Returns
trajectory output

◆ operator/=() [1/2]

template<typename T, typename Q>
SampledTraj< T > & codac2::operator/= ( SampledTraj< T > & x1,
const Q & x2 )
inline

Operates /=.

Parameters
x1
x2
Returns
updated output

◆ operator/=() [2/2]

template<typename T>
SampledTraj< T > & codac2::operator/= ( SampledTraj< T > & x1,
const SampledTraj< T > & x2 )
inline

Operates /=.

Parameters
x1
x2
Returns
updated output

◆ sqr()

SampledTraj< double > codac2::sqr ( const SampledTraj< double > & x1)

\(x^2(\cdot)\)

Parameters
x1
Returns
trajectory output

◆ sqrt()

SampledTraj< double > codac2::sqrt ( const SampledTraj< double > & x1)

\(\sqrt{x_1(\cdot)}\)

Parameters
x1
Returns
trajectory output

◆ pow() [1/2]

SampledTraj< double > codac2::pow ( const SampledTraj< double > & x1,
int x2 )

\(x^x_2(\cdot)\)

Parameters
x1
x2
Returns
trajectory output

◆ pow() [2/2]

SampledTraj< double > codac2::pow ( const SampledTraj< double > & x1,
double x2 )

\(x^x_2(\cdot)\)

Parameters
x1
x2
Returns
trajectory output

◆ root()

SampledTraj< double > codac2::root ( const SampledTraj< double > & x1,
int x2 )

\(x^x_2(\cdot)\)

Parameters
x1
x2
Returns
trajectory output

◆ exp()

SampledTraj< double > codac2::exp ( const SampledTraj< double > & x1)

\(\exp(x_1(\cdot))\)

Parameters
x1
Returns
trajectory output

◆ log()

SampledTraj< double > codac2::log ( const SampledTraj< double > & x1)

\(\log(x_1(\cdot))\)

Parameters
x1
Returns
trajectory output

◆ cos()

SampledTraj< double > codac2::cos ( const SampledTraj< double > & x1)

\(\cos(x_1(\cdot))\)

Parameters
x1
Returns
trajectory output

◆ sin()

SampledTraj< double > codac2::sin ( const SampledTraj< double > & x1)

\(\sin(x_1(\cdot))\)

Parameters
x1
Returns
trajectory output

◆ tan()

SampledTraj< double > codac2::tan ( const SampledTraj< double > & x1)

\(\tan(x_1(\cdot))\)

Parameters
x1
Returns
trajectory output

◆ acos()

SampledTraj< double > codac2::acos ( const SampledTraj< double > & x1)

\(\arccos(x_1(\cdot))\)

Parameters
x1
Returns
trajectory output

◆ asin()

SampledTraj< double > codac2::asin ( const SampledTraj< double > & x1)

\(\arcsin(x_1(\cdot))\)

Parameters
x1
Returns
trajectory output

◆ atan()

SampledTraj< double > codac2::atan ( const SampledTraj< double > & x1)

\(\arctan(x_1(\cdot))\)

Parameters
x1
Returns
trajectory output

◆ atan2() [1/3]

SampledTraj< double > codac2::atan2 ( const SampledTraj< double > & x1,
const SampledTraj< double > & x2 )

\(\mathrm{arctan2}(x_1(\cdot),x_2(\cdot))\)

Parameters
x1
x2
Returns
trajectory output

◆ atan2() [2/3]

SampledTraj< double > codac2::atan2 ( const SampledTraj< double > & x1,
double x2 )

\(\mathrm{arctan2}(x_1(\cdot),x_2)\)

Parameters
x1
x2
Returns
trajectory output

◆ atan2() [3/3]

SampledTraj< double > codac2::atan2 ( double x1,
const SampledTraj< double > & x2 )

\(\mathrm{arctan2}(x_1, x_2(\cdot))\)

Parameters
x1
x2
Returns
trajectory output

◆ cosh()

SampledTraj< double > codac2::cosh ( const SampledTraj< double > & x1)

\(\cosh(x_1(\cdot))\)

Parameters
x1
Returns
trajectory output

◆ sinh()

SampledTraj< double > codac2::sinh ( const SampledTraj< double > & x1)

\(\sinh(x_1(\cdot))\)

Parameters
x1
Returns
trajectory output

◆ tanh()

SampledTraj< double > codac2::tanh ( const SampledTraj< double > & x1)

\(\tanh(x_1(\cdot))\)

Parameters
x1
Returns
trajectory output

◆ acosh()

SampledTraj< double > codac2::acosh ( const SampledTraj< double > & x1)

\(\mathrm{arccosh}(x_1(\cdot))\)

Parameters
x1
Returns
trajectory output

◆ asinh()

SampledTraj< double > codac2::asinh ( const SampledTraj< double > & x1)

\(\mathrm{arcsinh}(x_1(\cdot))\)

Parameters
x1
Returns
trajectory output

◆ atanh()

SampledTraj< double > codac2::atanh ( const SampledTraj< double > & x1)

\(\mathrm{arctanh}(x_1(\cdot))\)

Parameters
x1
Returns
trajectory output

◆ abs()

SampledTraj< double > codac2::abs ( const SampledTraj< double > & x1)

\(\mid x_1(\cdot)\mid\)

Parameters
x1
Returns
trajectory output

◆ min() [1/3]

SampledTraj< double > codac2::min ( const SampledTraj< double > & x1,
const SampledTraj< double > & x2 )

\(\min(x_1(\cdot),x_2(\cdot))\)

Parameters
x1
x2
Returns
trajectory output

◆ min() [2/3]

SampledTraj< double > codac2::min ( const SampledTraj< double > & x1,
double x2 )

\(\min(x_1(\cdot),x_2)\)

Parameters
x1
x2
Returns
trajectory output

◆ min() [3/3]

SampledTraj< double > codac2::min ( double x1,
const SampledTraj< double > & x2 )

\(\min(x_1, x_2(\cdot))\)

Parameters
x1
x2
Returns
trajectory output

◆ max() [1/3]

SampledTraj< double > codac2::max ( const SampledTraj< double > & x1,
const SampledTraj< double > & x2 )

\(\max(x_1(\cdot),x_2(\cdot))\)

Parameters
x1
x2
Returns
trajectory output

◆ max() [2/3]

SampledTraj< double > codac2::max ( const SampledTraj< double > & x1,
double x2 )

\(\max(x_1(\cdot),x_2)\)

Parameters
x1
x2
Returns
trajectory output

◆ max() [3/3]

SampledTraj< double > codac2::max ( double x1,
const SampledTraj< double > & x2 )

\(\max(x_1, x_2(\cdot))\)

Parameters
x1
x2
Returns
trajectory output