tsaTraits
Define the tsa Traits.
Copyright (C) 2004 by Giancarlo Cella giancarlo.cella@pi.infn.it
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the
Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- Author
Giancarlo Cella giancarlo.cella@pi.infn.it
- Date
Sat Nov 13 17:21:06 2004
-
namespace tsa
The main namespace of the library.
tsa namespace
namespace
tsa namespace
Tag()is a small XML-tag-name formatting helper, kept (and still bound to Python, see pytsa.cpp) even though its original caller — the DVECTOR_XML_SERIALIZE/DMATRIX_XML_SERIALIZE/BOOL_XML_SERIALIZE macros this file used to also define, wrapping the now-removedeternityXML persistence framework — is gone (see CerealPersistence.hpp for the modern replacement, plain Cerealserialize()members, no string tags needed).-
template<>
class TypeTraits<double> - #include <tsaTraits.hpp>
-
template<>
class TypeTraits<std::complex<double>> - #include <tsaTraits.hpp>
Public Static Functions
-
static inline std::complex<double> conj(const std::complex<double> &x)
-
static inline double real(const std::complex<double> &x)
-
static inline double imag(const std::complex<double> &x)
-
static inline double abs(std::complex<double> x)
-
static inline double abs2(const std::complex<double> &x)
-
static inline double phase(const std::complex<double> &x)
-
static inline std::complex<double> conj(const std::complex<double> &x)
-
template<>