concepts::number< F > Struct Template Reference

Name traits for number types. More...

#include <typedefs.hh>

Detailed Description

template<typename F>
struct concepts::number< F >

Name traits for number types.

The name member of the template specializations of this class returns the name of the given number type, ie. Real or Cmplx. The main use of this is in debugging:

virtual std::ostream& info(std::ostream& os) const {
  return os << "DummySpace<" << number<F>::name()
<< ">(dim = " << dim_ << ')'; }

The name even changes if you are using quadruple precision by setting Real to long double.

See also
Real
number<double>
number<long double>
number<std::complex<double> >
number<std::complex<long double> >
Author
Philipp Frauenfelder, 2002

Definition at line 68 of file typedefs.hh.


The documentation for this struct was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich