complex_math.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2004 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// epsic/src/util/complex_math.h
10
11#ifndef _epsic_complex_math_H
12#define _epsic_complex_math_H
13
14#include <complex>
15#include "true_math.h"
16
17namespace true_math
18{
19 template<typename T>
20 bool finite (const std::complex<T>& z)
21 { return true_math::finite(z.real()) && true_math::finite(z.imag()); }
22}
23
24#endif
25

Generated using doxygen 1.14.0