Ember
Loading...
Searching...
No Matches
Functions | Variables
mathUtils.cpp File Reference
#include "mathUtils.h"
#include "sundialsUtils.h"
#include <limits>
Include dependency graph for mathUtils.cpp:

Functions

std::ostream & operator<< (std::ostream &os, const dvector &v)
 
std::ostream & operator<< (std::ostream &os, const vector< bool > &v)
 
std::ostream & operator<< (std::ostream &os, const vector< int > &v)
 
dvectoroperator+= (dvector &v1, const dvector &v2)
 
dvector operator+ (const dvector &v1, const dvector &v2)
 
dvectoroperator-= (dvector &v1, const dvector &v2)
 
dvector operator- (const dvector &v1, const dvector &v2)
 
dvectoroperator+= (dvector &v1, const double s)
 
dvector operator+ (const dvector &v1, const double s)
 
dvectoroperator-= (dvector &v1, const double s)
 
dvector operator- (const dvector &v1, const double s)
 
dvectoroperator*= (dvector &v1, const double s)
 
dvectoroperator*= (dvector &v1, const dvector &v2)
 
dvector operator* (const dvector &v1, const dvector &v2)
 
dvector operator* (const dvector &v1, const double s)
 
dvector operator* (const double s, const dvector &v1)
 
dvectoroperator/= (dvector &v1, const dvector &v2)
 
dvector operator/ (const dvector &v1, const dvector &v2)
 
dvectoroperator/= (dvector &v1, const double s)
 
dvector operator/ (const dvector &v1, const double s)
 
vector< bool > operator> (const dvector &v1, const dvector &v2)
 
vector< bool > operator< (const dvector &v1, const dvector &v2)
 
vector< bool > operator>= (const dvector &v1, const dvector &v2)
 
vector< bool > operator<= (const dvector &v1, const dvector &v2)
 
vector< bool > operator== (const dvector &v1, const dvector &v2)
 
vector< bool > operator!= (const dvector &v1, const dvector &v2)
 
vector< bool > operator> (const dvector &v1, const double &s)
 
vector< bool > operator< (const dvector &v1, const double &s)
 
vector< bool > operator>= (const dvector &v1, const double &s)
 
vector< bool > operator<= (const dvector &v1, const double &s)
 
vector< bool > operator== (const dvector &v1, const double &s)
 
vector< bool > operator!= (const dvector &v1, const double &s)
 
vector< bool > operator! (const vector< bool > &v)
 
vector< bool > operator&& (const vector< bool > &v1, const vector< bool > &v2)
 
vector< bool > operator|| (const vector< bool > &v1, const vector< bool > &v2)
 

Variables

const double NaN = std::numeric_limits<double>::quiet_NaN()
 

Function Documentation

◆ operator<<() [1/3]

std::ostream & operator<< ( std::ostream &  os,
const dvector v 
)

◆ operator<<() [2/3]

std::ostream & operator<< ( std::ostream &  os,
const vector< bool > &  v 
)

◆ operator<<() [3/3]

std::ostream & operator<< ( std::ostream &  os,
const vector< int > &  v 
)

◆ operator+=() [1/2]

dvector & operator+= ( dvector v1,
const dvector v2 
)

◆ operator+() [1/2]

dvector operator+ ( const dvector v1,
const dvector v2 
)

◆ operator-=() [1/2]

dvector & operator-= ( dvector v1,
const dvector v2 
)

◆ operator-() [1/2]

dvector operator- ( const dvector v1,
const dvector v2 
)

◆ operator+=() [2/2]

dvector & operator+= ( dvector v1,
const double  s 
)

◆ operator+() [2/2]

dvector operator+ ( const dvector v1,
const double  s 
)

◆ operator-=() [2/2]

dvector & operator-= ( dvector v1,
const double  s 
)

◆ operator-() [2/2]

dvector operator- ( const dvector v1,
const double  s 
)

◆ operator*=() [1/2]

dvector & operator*= ( dvector v1,
const double  s 
)

◆ operator*=() [2/2]

dvector & operator*= ( dvector v1,
const dvector v2 
)

◆ operator*() [1/3]

dvector operator* ( const dvector v1,
const dvector v2 
)

◆ operator*() [2/3]

dvector operator* ( const dvector v1,
const double  s 
)

◆ operator*() [3/3]

dvector operator* ( const double  s,
const dvector v1 
)

◆ operator/=() [1/2]

dvector & operator/= ( dvector v1,
const dvector v2 
)

◆ operator/() [1/2]

dvector operator/ ( const dvector v1,
const dvector v2 
)

◆ operator/=() [2/2]

dvector & operator/= ( dvector v1,
const double  s 
)

◆ operator/() [2/2]

dvector operator/ ( const dvector v1,
const double  s 
)

◆ operator>() [1/2]

vector< bool > operator> ( const dvector v1,
const dvector v2 
)

◆ operator<() [1/2]

vector< bool > operator< ( const dvector v1,
const dvector v2 
)

◆ operator>=() [1/2]

vector< bool > operator>= ( const dvector v1,
const dvector v2 
)

◆ operator<=() [1/2]

vector< bool > operator<= ( const dvector v1,
const dvector v2 
)

◆ operator==() [1/2]

vector< bool > operator== ( const dvector v1,
const dvector v2 
)

◆ operator!=() [1/2]

vector< bool > operator!= ( const dvector v1,
const dvector v2 
)

◆ operator>() [2/2]

vector< bool > operator> ( const dvector v1,
const double &  s 
)

◆ operator<() [2/2]

vector< bool > operator< ( const dvector v1,
const double &  s 
)

◆ operator>=() [2/2]

vector< bool > operator>= ( const dvector v1,
const double &  s 
)

◆ operator<=() [2/2]

vector< bool > operator<= ( const dvector v1,
const double &  s 
)

◆ operator==() [2/2]

vector< bool > operator== ( const dvector v1,
const double &  s 
)

◆ operator!=() [2/2]

vector< bool > operator!= ( const dvector v1,
const double &  s 
)

◆ operator!()

vector< bool > operator! ( const vector< bool > &  v)

◆ operator&&()

vector< bool > operator&& ( const vector< bool > &  v1,
const vector< bool > &  v2 
)

◆ operator||()

vector< bool > operator|| ( const vector< bool > &  v1,
const vector< bool > &  v2 
)

Variable Documentation

◆ NaN

const double NaN = std::numeric_limits<double>::quiet_NaN()