IFEM  90A354
Namespaces | Functions
IFEM_math.h File Reference

Various math utility methods. More...

#include <cmath>
#include <cstddef>
#include <vector>
Include dependency graph for IFEM_math.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 utl
 General utility classes and functions.
 

Functions

size_t utl::Pascal (int p, unsigned short int nsd)
 Returns the number of monomials in Pascal's triangle. More...
 
void utl::Pascal (int p, Real x, Real y, std::vector< Real > &phi)
 Evaluates the monomials of Pascal's triangle in 2D for order p.
 
void utl::Pascal (int p, Real x, Real y, Real z, std::vector< Real > &phi)
 Evaluates the monomials of Pascal's triangle in 3D for order p.
 
Real utl::Pos (Real x)
 Evaluates the positive ramp function \((x+|x|)/2\).
 
Real utl::Neg (Real x)
 Evaluates the negative ramp function \((x-|x|)/2\).
 
Real utl::Rad (Real x)
 Converts from degrees to radians.
 

Detailed Description

Various math utility methods.

Date
Oct 20 2015
Author
Knut Morten Okstad / SINTEF