Electromagnetic Template Library (EMTL)
Loading...
Searching...
No Matches
emdefs.h File Reference

Constants, definitions and datatypes for emLibrary. More...

#include <cmath>
#include <complex>
#include "vector_3.h"
#include "cvector_3.h"
#include "ivutils_defs.h"
#include "memutils.h"
Include dependency graph for emdefs.h:
This graph shows which files directly or indirectly include this file:

Functions

template<class T >
T & getveccomp (T &t, int ind)
 get-set vector component
 
template<class T >
fmadd (const T &a, const T &b, const T &c)
 fma operation (to be implemented in vectrorized versions)
 

Variables

const valtype C =1.
 speed of light
 
const valtype eps0 =1./C
 vacuum electrical permittivity
 
const valtype mue0 =1./C
 vacuum magnetic permeabiliity
 
constexpr int VCount = 1
 number of components in vector
 

Detailed Description

Constants, definitions and datatypes for emLibrary.