CEPS
24.01
Cardiac ElectroPhysiology Simulator
|
A class that describes a monomial of N variables It contains exponents and coefficients for each dimension of variables.
_ArgsDim | the number of arguments (dimensionality of domain definition) |
Definition at line 40 of file CepsPolynomial.hpp.
#include <CepsPolynomial.hpp>
Public Types | |
using | ExponentType = CepsArray< CepsInt, _ArgsDim > |
convenience typedef More... | |
using | ArgType = CepsArray< CepsReal, _ArgsDim > |
convenience typedef More... | |
using | GradientType = CepsArray< CepsReal, _ArgsDim > |
convenience typedef More... | |
using | FunctionType = ceps::Function< CepsReal(const ArgType &)> |
convenience typedef More... | |
Public Member Functions | |
Monomial (const ExponentType &exponent={}) | |
Constructor with given exponent (or default) More... | |
Monomial (const Monomial &that) | |
Copy constructor. More... | |
Monomial & | operator= (const Monomial &that) |
Assignment operator. More... | |
~Monomial () | |
destructor More... | |
ExponentType | getExponents () const |
get the exponents More... | |
void | setExponents (const ExponentType &exponent) |
Sets all the exponents. More... | |
CepsReal | eval (const ArgType &x) override |
Evaluate at x (x in ) More... | |
GradientType | gradient (const ArgType &x) const |
Evaluate gradient at x (x in ) More... | |
CepsBool | operator== (const Monomial &other) const |
Check equality of monomes (ie same exponents) More... | |
CepsBool | operator== (const ExponentType &other) const |
Check equality of monomes (ie same exponents) More... | |
Monomial | operator* (const Monomial &other) const |
Return this*other. More... | |
Monomial | operator/ (const Monomial &other) const |
Return this/other. There is no check that the resulting exponents are positive. More... | |
Protected Attributes | |
ExponentType | m_exponent |
The exponents for each dimension. More... | |
convenience typedef
Definition at line 47 of file CepsPolynomial.hpp.
using Monomial< _ArgsDim >::ExponentType = CepsArray<CepsInt, _ArgsDim> |
convenience typedef
Definition at line 45 of file CepsPolynomial.hpp.
using Monomial< _ArgsDim >::FunctionType = ceps::Function<CepsReal (const ArgType &)> |
convenience typedef
Definition at line 51 of file CepsPolynomial.hpp.
using Monomial< _ArgsDim >::GradientType = CepsArray<CepsReal, _ArgsDim> |
convenience typedef
Definition at line 49 of file CepsPolynomial.hpp.
Monomial< _ArgsDim >::Monomial | ( | const ExponentType & | exponent = {} | ) |
Constructor with given exponent (or default)
Copy constructor.
Evaluate at x (x in )
ExponentType Monomial< _ArgsDim >::getExponents | ( | ) | const |
get the exponents
GradientType Monomial< _ArgsDim >::gradient | ( | const ArgType & | x | ) | const |
Evaluate gradient at x (x in )
Monomial Monomial< _ArgsDim >::operator* | ( | const Monomial< _ArgsDim > & | other | ) | const |
Return this*other.
Monomial Monomial< _ArgsDim >::operator/ | ( | const Monomial< _ArgsDim > & | other | ) | const |
Return this/other. There is no check that the resulting exponents are positive.
Monomial& Monomial< _ArgsDim >::operator= | ( | const Monomial< _ArgsDim > & | that | ) |
Assignment operator.
CepsBool Monomial< _ArgsDim >::operator== | ( | const ExponentType & | other | ) | const |
Check equality of monomes (ie same exponents)
CepsBool Monomial< _ArgsDim >::operator== | ( | const Monomial< _ArgsDim > & | other | ) | const |
Check equality of monomes (ie same exponents)
void Monomial< _ArgsDim >::setExponents | ( | const ExponentType & | exponent | ) |
Sets all the exponents.
|
protected |
The exponents for each dimension.
Definition at line 103 of file CepsPolynomial.hpp.