ARTS
2.0.49
complex.cc
Go to the documentation of this file.
1
/* Copyright (C) 2002-2008 Stefan Buehler <sbuehler@ltu.se>
2
3
This program is free software; you can redistribute it and/or modify it
4
under the terms of the GNU General Public License as published by the
5
Free Software Foundation; either version 2, or (at your option) any
6
later version.
7
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
GNU General Public License for more details.
12
13
You should have received a copy of the GNU General Public License
14
along with this program; if not, write to the Free Software
15
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16
USA. */
17
26
#include "
complex.h
"
27
28
complex<float>
operator+
(
const
double
& d,
const
complex<float>
& c)
29
{
30
return
(
float
(d) + c);
31
}
32
33
complex<float>
operator*
(
const
double
& d,
const
complex<float>
& c)
34
{
35
return
(
float
(d) * c);
36
}
37
38
39
complex<float>
operator+
(
const
complex<float>
& c,
const
double
& d)
40
{
41
return
(c +
float
(d));
42
}
43
44
complex<float>
operator*
(
const
complex<float>
& c,
const
double
& d)
45
{
46
return
(c *
float
(d));
47
}
48
49
50
51
complex<double>
operator+
(
const
float
& f,
const
complex<double>
& c)
52
{
53
return
(
double
(f) + c);
54
}
55
56
complex<double>
operator*
(
const
float
& f,
const
complex<double>
& c)
57
{
58
return
(
double
(f) * c);
59
}
60
61
complex<double>
operator+
(
const
complex<double>
& c,
const
float
& f)
62
{
63
return
(c +
double
(f));
64
}
65
66
complex<double>
operator*
(
const
complex<double>
& c,
const
float
& f)
67
{
68
return
(c *
double
(f));
69
}
70
complex.h
A class implementing complex numbers for ARTS.
operator+
complex< float > operator+(const double &d, const complex< float > &c)
Definition:
complex.cc:28
operator*
complex< float > operator*(const double &d, const complex< float > &c)
Definition:
complex.cc:33
complex
Definition:
continua.cc:12953
src
complex.cc
Generated by
1.8.20