Class documentation of Concepts

Loading...
Searching...
No Matches
vectorsMatrices.hh File Reference
#include <iostream>
#include <cmath>
#include <cstring>
#include <type_traits>
#include "functionCompiler.hh"
#include "exceptions.hh"
#include "typedefs.hh"
#include "vectorsMatricesForward.hh"
#include "debug.hh"

Go to the source code of this file.

Classes

class  concepts::Point< F, dim >
 
struct  concepts::Realtype< Point< F, dim > >
 
struct  concepts::Datatype< Point< F, dim > >
 
class  concepts::UnitNd< dim >
 
class  concepts::Mapping< F, DimY, DimX >
 
struct  concepts::Realtype< Mapping< F, DimY, DimX > >
 
struct  concepts::Datatype< Mapping< F, DimY, DimX > >
 
struct  concepts::GeneralMapping< F, dim >
 
struct  concepts::GeneralMapping< F, 1 >
 
struct  concepts::number< Point< F, dim > >
 
struct  concepts::number< Mapping< F, dim > >
 
struct  concepts::GeneralPoint< F, CoordDim >
 
struct  concepts::Coordinate< CoordDim >
 
struct  concepts::CoordinateParam< CoordDim >
 

Namespaces

namespace  concepts
 

Macros

#define MappingAppll_D   0
 
#define MappingAppl_D   0
 
#define MappingConstructorHack   1
 

Typedefs

typedef Mapping< Real, 2 > concepts::MapReal2d
 
typedef Mapping< Real, 3 > concepts::MapReal3d
 
typedef Mapping< Cmplx, 2 > concepts::MapCmplx2d
 
typedef Mapping< Cmplx, 3 > concepts::MapCmplx3d
 

Functions

template<typename F , typename G >
void concepts::memorycpy (F *dest, const G *src, size_t n)
 Copies n entries from src to dest (faster than std::memcpy)
 
template<class F , uint dim>
std::ostream & concepts::operator<< (std::ostream &os, const Point< F, dim > &p)
 
template<class F , uint dim>
bool concepts::operator== (const Point< F, dim > &x, const Point< F, dim > &y)
 
template<class F , uint dim>
Point< typename Combtype< F, Real >::type, dim > concepts::operator* (const Real x, const Point< F, dim > &y)
 
template<class F , uint dim>
Point< typename Combtype< F, Cmplx >::type, dim > concepts::operator* (const Cmplx x, const Point< F, dim > &y)
 
template<uint dim>
Cmplx concepts::operator* (const Point< Cmplx, dim > &a, const Point< Real, dim > &b)
 
template<uint dim>
Cmplx concepts::operator* (const Point< Real, dim > &a, const Point< Cmplx, dim > &b)
 
template<class F , uint DimY, uint DimX>
std::ostream & concepts::operator<< (std::ostream &os, const Mapping< F, DimY, DimX > &m)
 
template<class F , uint dim>
const concepts::Point< F, dim > std::conj (const concepts::Point< F, dim > &v)
 
template<class F , uint dim>
const concepts::Real std::norm (const concepts::Point< F, dim > &v)
 
concepts::Real std::arg (const concepts::Point< concepts::Real, 2 > &p)
 

Detailed Description

Vectors and matrices for 2D and 3D

Definition in file vectorsMatrices.hh.

Macro Definition Documentation

◆ MappingAppl_D

#define MappingAppl_D   0

Definition at line 23 of file vectorsMatrices.hh.

◆ MappingAppll_D

#define MappingAppll_D   0

Definition at line 22 of file vectorsMatrices.hh.

◆ MappingConstructorHack

#define MappingConstructorHack   1

Definition at line 25 of file vectorsMatrices.hh.

Function Documentation

◆ arg()

concepts::Real std::arg ( const concepts::Point< concepts::Real, 2 > &  p)

Returns the phase angle of a real 2D vector.

It is an extension of that definition for complex numbers from <complex>.

◆ conj()

template<class F , uint dim>
const concepts::Point< F, dim > std::conj ( const concepts::Point< F, dim > &  v)
inline

Returns the conjugate complex of a vector.

It is an extension of that definition for complex numbers from <complex>.

Author
Kersten Schmidt, 2005

Definition at line 709 of file vectorsMatrices.hh.

◆ norm()

template<class F , uint dim>
const concepts::Real std::norm ( const concepts::Point< F, dim > &  v)
inline

Returns the norm of a vector.

It is an extension of that definition for complex numbers from <complex>.

Definition at line 722 of file vectorsMatrices.hh.