--- /dev/null
+Removed: The deprecated functions numbers::is_nan() and
+SLEPcWrappers::SolverBase::set_initial_vector() have been removed.
+<br>
+(Daniel Arndt, 2020/04/24)
struct is_cuda_compatible<std::complex<Number>, void> : std::false_type
{};
- /**
- * Check whether a value is not a number.
- *
- * This function uses either <code>std::isnan</code>, <code>isnan</code>, or
- * <code>_isnan</code>, whichever is available on the system and returns the
- * result.
- *
- * If none of the functions detecting NaN is available, this function
- * returns false.
- *
- * @deprecated This function has been deprecated in favor of the C++11
- * function <code>std::isnan</code>.
- */
- DEAL_II_DEPRECATED
- bool
- is_nan(const double x);
-
/**
* Return @p true if the given value is a finite floating point number, i.e.
* is neither plus or minus infinity nor NaN (not a number).
#endif // DOXYGEN
-
-namespace numbers
-{
- template <typename ADNumberType>
- bool
- is_nan(const typename std::enable_if<
- Differentiation::AD::is_ad_number<ADNumberType>::value,
- ADNumberType>::type &x)
- {
- return is_nan(
- Differentiation::AD::ADNumberTraits<ADNumberType>::get_value(x));
- }
-
-} // namespace numbers
-
-
DEAL_II_NAMESPACE_CLOSE
#endif
std::vector<OutputVector> & imag_eigenvectors,
const unsigned int n_eigenpairs = 1);
- /**
- * Set the initial vector for the solver.
- */
- DEAL_II_DEPRECATED
- void
- set_initial_vector(const PETScWrappers::VectorBase &this_initial_vector);
-
/**
* Set the initial vector space for the solver.
*
# endif
}
- void
- SolverBase::set_initial_vector(
- const PETScWrappers::VectorBase &this_initial_vector)
- {
- Assert(this_initial_vector.l2_norm() > 0.0,
- ExcMessage("Initial vector should be nonzero."));
-
- Vec vec = this_initial_vector;
- const PetscErrorCode ierr = EPSSetInitialSpace(eps, 1, &vec);
-
- AssertThrow(ierr == 0, ExcSLEPcError(ierr));
- }
-
void
SolverBase::set_target_eigenvalue(const PetscScalar &this_target)
{