コード例 #1
0
 static Amesos2::PMKL::_MKL_Complex8 safeConvert( const TypeFrom t )
 {                           // adapt conversion as necessary
   Amesos2::PMKL::_MKL_Complex8 ret;
   ret.real = Teuchos::as<float>(t.real());
   ret.imag = Teuchos::as<float>(t.imag());
   return( ret );
 }
コード例 #2
0
 static SLUD::Z::doublecomplex safeConvert( const TypeFrom t )
   {
     SLUD::Z::doublecomplex ret;
     ret.r = Teuchos::as<double>(t.real());
     ret.i = Teuchos::as<double>(t.imag());
     return( ret );
   }
コード例 #3
0
 static Amesos2::PMKL::_DOUBLE_COMPLEX_t safeConvert( const TypeFrom t )
 {                           // adapt conversion as necessary
   Amesos2::PMKL::_DOUBLE_COMPLEX_t ret;
   ret.r = Teuchos::as<double>(t.real());
   ret.i = Teuchos::as<double>(t.imag());
   return( ret );
 }