newarp_EigsSelect.hpp 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au)
  2. // Copyright 2008-2016 National ICT Australia (NICTA)
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // ------------------------------------------------------------------------
  15. namespace newarp
  16. {
  17. //! The enumeration of selection rules of desired eigenvalues.
  18. struct EigsSelect
  19. {
  20. enum SELECT_EIGENVALUE
  21. {
  22. LARGEST_MAGN = 0, //!< Select eigenvalues with largest magnitude.
  23. //!< Magnitude means the absolute value for real numbers and norm for complex numbers.
  24. //!< Applies to both symmetric and general eigen solvers.
  25. LARGEST_REAL, //!< Select eigenvalues with largest real part. Only for general eigen solvers.
  26. LARGEST_IMAG, //!< Select eigenvalues with largest imaginary part (in magnitude). Only for general eigen solvers.
  27. LARGEST_ALGE, //!< Select eigenvalues with largest algebraic value, considering any negative sign. Only for symmetric eigen solvers.
  28. SMALLEST_MAGN, //!< Select eigenvalues with smallest magnitude. Applies to both symmetric and general eigen solvers.
  29. SMALLEST_REAL, //!< Select eigenvalues with smallest real part. Only for general eigen solvers.
  30. SMALLEST_IMAG, //!< Select eigenvalues with smallest imaginary part (in magnitude). Only for general eigen solvers.
  31. SMALLEST_ALGE, //!< Select eigenvalues with smallest algebraic value. Only for symmetric eigen solvers.
  32. BOTH_ENDS //!< Select eigenvalues half from each end of the spectrum.
  33. //!< When `nev` is odd, compute more from the high end. Only for symmetric eigen solvers.
  34. };
  35. };
  36. } // namespace newarp