casacore
Loading...
Searching...
No Matches
NumericTraits2.h
Go to the documentation of this file.
1//# NumericTraits2.h: Specialisations of the NumericTraits class
2//# Copyright (C) 1996,1997,2000
3//# Associated Universities, Inc. Washington DC, USA.
4//#
5//# This library is free software; you can redistribute it and/or modify it
6//# under the terms of the GNU Library General Public License as published by
7//# the Free Software Foundation; either version 2 of the License, or (at your
8//# option) any later version.
9//#
10//# This library is distributed in the hope that it will be useful, but WITHOUT
11//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13//# License for more details.
14//#
15//# You should have received a copy of the GNU Library General Public License
16//# along with this library; if not, write to the Free Software Foundation,
17//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18//#
19//# Correspondence concerning AIPS++ should be addressed as follows:
20//# Internet email: casa-feedback@nrao.edu.
21//# Postal address: AIPS++ Project Office
22//# National Radio Astronomy Observatory
23//# 520 Edgemont Road
24//# Charlottesville, VA 22903-2475 USA
25
26#ifndef SCIMATH_NUMERICTRAITS2_H
27#define SCIMATH_NUMERICTRAITS2_H
28
29#include <casacore/casa/aips.h>
30#include <casacore/casa/BasicSL/Complex.h>
31
32namespace casacore { //# NAMESPACE CASACORE - BEGIN
33
34// <summary> A specialisation for T=Float of the NumericTraits class </summary>
35// <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="" demos="">
36// </reviewed>
37template <> class NumericTraits<Float> {
38public:
39 typedef Complex ConjugateType;
41 static const Double & epsilon;
42 static const Double & minimum;
43 static const Double & maximum;
44};
45
46// <summary> A specialisation for T=Double of the NumericTraits class </summary>
47// <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="" demos="">
48// </reviewed>
49template <> class NumericTraits<Double> {
50public:
51 typedef DComplex ConjugateType;
53 static const Double & epsilon;
54 static const Double & minimum;
55 static const Double & maximum;
56};
57
58// <summary> A specialisation for T=Complex of the NumericTraits class </summary>
59// <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="" demos="">
60// </reviewed>
61template <> class NumericTraits<Complex> {
62public:
64 typedef DComplex PrecisionType;
65 static const Double & epsilon;
66 static const Double & minimum;
67 static const Double & maximum;
68};
69
70// <summary> A specialisation for T=DComplex of the NumericTraits class </summary>
71// <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="" demos="">
72// </reviewed>
73// <use visibility=local>
74//
75// <synopsis>
76// This file contains specialisations of the templated NumericTraits class.
77// See the description in
78// <linkto file="NumericTraits.h#summary">NumericTraits.h</linkto>
79// for a summary of the purpose and usage of this class and its
80// specialisations.
81// </synopsis>
82
83template <> class NumericTraits<DComplex> {
84public:
86 typedef DComplex PrecisionType;
87 static const Double & epsilon;
88 static const Double & minimum;
89 static const Double & maximum;
90};
91
92
93} //# NAMESPACE CASACORE - END
94
95#endif
static const Double & epsilon
static const Double & minimum
static const Double & maximum
this file contains all the compiler specific defines
Definition mainpage.dox:28
float Float
Definition aipstype.h:52
double Double
Definition aipstype.h:53