1
0
mirror of https://github.com/paboyle/Grid.git synced 2026-05-22 10:04:17 +01:00

added inline to rf functions

This commit is contained in:
Patrick Oare
2025-09-10 17:16:48 -04:00
parent 597086a031
commit 82d411ca7b
+3 -3
View File
@@ -45,7 +45,7 @@ enum RitzFilter {
}; };
/** Selects the RitzFilter corresponding to the input string. */ /** Selects the RitzFilter corresponding to the input string. */
RitzFilter selectRitzFilter(std::string s) { inline RitzFilter selectRitzFilter(std::string s) {
if (s == "EvalNormSmall") { return EvalNormSmall; } else if (s == "EvalNormSmall") { return EvalNormSmall; } else
if (s == "EvalNormLarge") { return EvalNormLarge; } else if (s == "EvalNormLarge") { return EvalNormLarge; } else
if (s == "EvalReSmall") { return EvalReSmall; } else if (s == "EvalReSmall") { return EvalReSmall; } else
@@ -56,7 +56,7 @@ RitzFilter selectRitzFilter(std::string s) {
} }
/** Returns a string saying which RitzFilter it is. */ /** Returns a string saying which RitzFilter it is. */
std::string rfToString(RitzFilter RF) { inline std::string rfToString(RitzFilter RF) {
switch (RF) { switch (RF) {
case EvalNormSmall: case EvalNormSmall:
return "EvalNormSmall"; return "EvalNormSmall";
@@ -367,7 +367,7 @@ class KrylovSchur {
std::cout << GridLogMessage << "*** TRUNCATING FOR RESTART *** " << std::endl; std::cout << GridLogMessage << "*** TRUNCATING FOR RESTART *** " << std::endl;
std::cout << GridLogDebug << "Rayleigh before truncation: " << std::endl << Rayleigh << std::endl; std::cout << GridLogDebug << "Rayleigh before truncation: " << std::endl << Rayleigh << std::endl;
Eigen::MatrixXcd RayTmp = Rayleigh(Eigen::seqN(0, Nk), Eigen::seqN(0, Nk)); Eigen::MatrixXcd RayTmp = Rayleigh(Eigen::seqN(0, Nk), Eigen::seqN(0, Nk));
Rayleigh = RayTmp; Rayleigh = RayTmp;