42 #ifndef __Teuchos_MatrixMarket_assignScalar_hpp
43 #define __Teuchos_MatrixMarket_assignScalar_hpp
51 namespace MatrixMarket {
59 template<class Scalar, bool isComplex=Teuchos::ScalarTraits<Scalar>::isComplex>
69 template<
class RealType>
73 assign (RealType& val,
83 #ifdef HAVE_TEUCHOS_COMPLEX
86 template<
class MagType>
87 class ScalarAssigner<std::complex<MagType>, true> {
90 assign (std::complex<MagType>& val,
94 val = std::complex<MagType> (real, imag);
97 #endif // HAVE_TEUCHOS_COMPLEX
105 template<
class Scalar>
107 assignScalar (Scalar& val,
111 ScalarAssigner<Scalar>::assign (val, real, imag);
118 #endif // __Teuchos_MatrixMarket_assignScalar_hpp
T magnitudeType
Mandatory typedef for result of magnitude.
This structure defines some basic traits for a scalar field type.
Implementation detail of assignScalar().
Defines basic traits for the scalar field type.
Definition of Teuchos::as, for conversions between types.