last update 20 Sep 2009 |
#include "cvrMath.h"
#include "cvrIoHandler.h"
#include <complex>
#include <iostream>
#include "cvrComplex_inline.h"
#include "cvrComplex_template.h"
Go to the source code of this file.
Classes | |
class | cvr::complex< T > |
Class to represent and manipulate complex numbers. More... | |
Namespaces | |
namespace | cvr |
namespace | std |
Operators for complex numbers | |
typedef complex< float > | cvr::fcomplex |
typedef complex< double > | cvr::dcomplex |
template<typename T > | |
complex< T > | cvr::operator+ (const complex< T > &a, const complex< T > &b) |
template<typename T > | |
complex< T > | cvr::operator+ (const complex< T > &a, const T &b) |
template<typename T > | |
complex< T > | cvr::operator+ (const T &a, const complex< T > &b) |
template<typename T > | |
complex< T > | cvr::operator- (const complex< T > &a, const complex< T > &b) |
template<typename T > | |
complex< T > | cvr::operator- (const complex< T > &a, const T &b) |
template<typename T > | |
complex< T > | cvr::operator- (const T &a, const complex< T > &b) |
template<typename T > | |
complex< T > | cvr::operator* (const complex< T > &a, const complex< T > &b) |
template<typename T > | |
complex< T > | cvr::operator* (const complex< T > &a, const T &b) |
template<typename T > | |
complex< T > | cvr::operator* (const T &a, const complex< T > &b) |
template<typename T > | |
complex< T > | cvr::operator/ (const complex< T > &a, const complex< T > &b) |
template<typename T > | |
complex< T > | cvr::operator/ (const complex< T > &a, const T &b) |
template<typename T > | |
complex< T > | cvr::operator/ (const T &a, const complex< T > &b) |
template<typename T > | |
complex< T > | cvr::operator+ (const complex< T > &a) |
template<typename T > | |
complex< T > | cvr::operator- (const complex< T > &a) |
template<typename T > | |
bool | cvr::operator== (const complex< T > &a, const complex< T > &b) |
template<typename T > | |
bool | cvr::operator== (const complex< T > &a, const T &b) |
template<typename T > | |
bool | cvr::operator== (const T &a, const complex< T > &b) |
template<typename T > | |
bool | cvr::operator!= (const complex< T > &a, const complex< T > &b) |
template<typename T > | |
bool | cvr::operator!= (const complex< T > &a, const T &b) |
template<typename T > | |
bool | cvr::operator!= (const T &a, const complex< T > &b) |
template<typename T > | |
bool | cvr::operator< (const complex< T > &a, const complex< T > &b) |
template<typename T > | |
bool | cvr::operator< (const complex< T > &a, const T &b) |
template<typename T > | |
bool | cvr::operator< (const T &a, const complex< T > &b) |
template<typename T > | |
bool | cvr::operator> (const complex< T > &a, const complex< T > &b) |
template<typename T > | |
bool | cvr::operator> (const complex< T > &a, const T &b) |
template<typename T > | |
bool | cvr::operator> (const T &a, const complex< T > &b) |
template<typename T > | |
T | cvr::real (const complex< T > &cn) |
template<typename T > | |
T | cvr::imag (const complex< T > &cn) |
template<typename T > | |
T | cvr::sqrAbs (const complex< T > &x) |
template<typename T > | |
T | cvr::abs (const complex< T > &cn) |
template<typename T > | |
T | cvr::arg (const complex< T > &cn) |
template<typename T > | |
T | cvr::norm (const complex< T > &cn) |
template<typename T > | |
complex< T > | cvr::polar (const T &radius, const T &angle) |
template<typename T > | |
complex< T > | cvr::conj (const complex< T > &cn) |
template<typename T > | |
complex< T > | cvr::cos (const complex< T > &cn) |
template<typename T > | |
complex< T > | cvr::cosh (const complex< T > &cn) |
template<typename T > | |
complex< T > | cvr::acos (const complex< T > &cn) |
template<typename T > | |
complex< T > | cvr::exp (const complex< T > &cn) |
template<typename T > | |
complex< T > | cvr::log (const complex< T > &cn) |
template<typename T > | |
complex< T > | cvr::log10 (const complex< T > &cn) |
template<typename T > | |
complex< T > | cvr::sin (const complex< T > &cn) |
template<typename T > | |
complex< T > | cvr::sinh (const complex< T > &cn) |
template<typename T > | |
complex< T > | cvr::asin (const complex< T > &cn) |
template<typename T > | |
complex< T > | cvr::sqrt (const complex< T > &cn) |
template<typename T > | |
complex< T > | cvr::cbrt (const complex< T > &cn) |
template<typename T > | |
complex< T > | cvr::cubeRoot (const complex< T > &cn) |
template<typename T > | |
complex< T > | cvr::tan (const complex< T > &cn) |
template<typename T > | |
complex< T > | cvr::tanh (const complex< T > &cn) |
template<typename T > | |
complex< T > | cvr::atan (const complex< T > &cn) |
template<typename T > | |
complex< T > | cvr::pow (const complex< T > &a, const T &b) |
template<typename T > | |
complex< T > | cvr::pow (const complex< T > &a, const complex< T > &b) |
template<typename T > | |
complex< T > | cvr::pow (const T &a, const complex< T > &b) |
template<typename T > | |
bool | cvr::read (ioHandler &handler, complex< T > &p, const bool complete=true) |
template<typename T > | |
bool | cvr::write (ioHandler &handler, const complex< T > &p, const bool complete=true) |
There are a few features besides the std::complex, but both types are compatible.