\{
template struct NumberTraits<Number, NumberTypes::adolc_taped>;
template struct NumberTraits<Number, NumberTypes::adolc_tapeless>;
- \}
- \}
- }
-
-
-for (Number : COMPLEX_SCALARS)
- {
- namespace Differentiation
- \{
- namespace AD
- \{
- template struct NumberTraits<Number, NumberTypes::adolc_taped>;
- template struct NumberTraits<Number, NumberTypes::adolc_tapeless>;
+ template struct NumberTraits<std::complex<Number>,
+ NumberTypes::adolc_taped>;
+ template struct NumberTraits<std::complex<Number>,
+ NumberTypes::adolc_tapeless>;
\}
\}
}
\{
template struct NumberTraits<Number,NumberTypes::sacado_dfad>;
template struct NumberTraits<Number,NumberTypes::sacado_dfad_dfad>;
+ template struct NumberTraits<std::complex<Number>,NumberTypes::sacado_dfad>;
+ template struct NumberTraits<std::complex<Number>,NumberTypes::sacado_dfad_dfad>;
template struct NumberTraits<Number,NumberTypes::sacado_rad>;
template struct NumberTraits<Number,NumberTypes::sacado_rad_dfad>;
\}
\}
}
-
-
-for (Number : COMPLEX_SCALARS)
-{
- namespace Differentiation
- \{
- namespace AD
- \{
- template struct NumberTraits<Number,NumberTypes::sacado_dfad>;
- template struct NumberTraits<Number,NumberTypes::sacado_dfad_dfad>;
- \}
- \}
-}
// ------------------------------------------------------------------------
-for (Number : COMPLEX_SCALARS)
+for (Number : REAL_SCALARS)
{
namespace Differentiation
\{
namespace AD
\{
- template struct NumberTraits<Number,NumberTypes::sacado_rad>;
- template struct NumberTraits<Number,NumberTypes::sacado_rad_dfad>;
+ template struct NumberTraits<std::complex<Number>,NumberTypes::sacado_rad>;
+ template struct NumberTraits<std::complex<Number>,NumberTypes::sacado_rad_dfad>;
\}
\}
}
template class CSEDictionaryVisitor<number, SD::Expression>;
template class DictionarySubstitutionVisitor<number, SD::Expression>;
-
- \}
- \}
- \}
- }
-
-for (number : COMPLEX_SCALARS)
- {
- namespace Differentiation
- \{
- namespace SD
- \{
- namespace internal
- \{
-
- template class CSEDictionaryVisitor<number, SD::Expression>;
- template class DictionarySubstitutionVisitor<number, SD::Expression>;
+ template class CSEDictionaryVisitor<std::complex<number>,
+ SD::Expression>;
+ template class DictionarySubstitutionVisitor<std::complex<number>,
+ SD::Expression>;
\}
\}
\{
template class BatchOptimizer<number>;
-
- \}
- \}
- }
-
-for (number : COMPLEX_SCALARS)
- {
- namespace Differentiation
- \{
- namespace SD
- \{
-
- template class BatchOptimizer<number>;
+ template class BatchOptimizer<std::complex<number>>;
\}
\}