42#ifndef __Teuchos_MatrixMarket_assignScalar_hpp
43#define __Teuchos_MatrixMarket_assignScalar_hpp
59 template<class Scalar, bool isComplex=Teuchos::ScalarTraits<Scalar>::isComplex>
69 template<
class RealType>
83#ifdef HAVE_TEUCHOS_COMPLEX
86 template<
class MagType>
90 assign (std::complex<MagType>&
val,
94 val = std::complex<MagType> (real, imag);
105 template<
class Scalar>
107 assignScalar (Scalar& val,
111 ScalarAssigner<Scalar>::assign (val, real, imag);
Defines basic traits for the scalar field type.
Definition of Teuchos::as, for conversions between types.
Implementation detail of assignScalar().
Smart reference counting pointer class for automatic garbage collection.
Matrix Market file utilities.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
Teuchos implementation details.
This structure defines some basic traits for a scalar field type.
T magnitudeType
Mandatory typedef for result of magnitude.