This commit is contained in:
张壹 2025-02-09 20:09:55 +08:00
parent 4067990273
commit ecc73dfe11
17 changed files with 21 additions and 21 deletions

View File

@ -25,11 +25,11 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include <iostream>
#include <iomanip>
#include "../lib/optimization.h"
#include "gctl/core.h"
#include "gctl/algorithms.h"
#include "../lib/optimization.h"
#include "iostream"
#include "iomanip"
using std::cout;
using std::endl;

View File

@ -25,11 +25,11 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include <iostream>
#include <iomanip>
#include "../lib/optimization.h"
#include "gctl/core.h"
#include "gctl/algorithms.h"
#include "../lib/optimization.h"
#include "iostream"
#include "iomanip"
using std::cout;
using std::endl;

View File

@ -25,9 +25,9 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/optimization.h"
#include "gctl/core.h"
#include "gctl/algorithms.h"
#include "../lib/optimization.h"
int main(int argc, char const *argv[])
{

View File

@ -25,9 +25,9 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/optimization.h"
#include "gctl/core.h"
#include "gctl/algorithms.h"
#include "../lib/optimization.h"
// get random floating points
double random_double(double l, double t)

View File

@ -25,9 +25,9 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/optimization.h"
#include "gctl/core.h"
#include "gctl/algorithms.h"
#include "../lib/optimization.h"
typedef gctl::array<std::complex<double>> cd_array;

View File

@ -25,9 +25,9 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/optimization.h"
#include "gctl/core.h"
#include "gctl/algorithms.h"
#include "../lib/optimization.h"
#define M 1000
#define N 900

View File

@ -50,6 +50,6 @@ namespace gctl
void operator=(const gctl::cholesky&) = delete;
matrix<double> &decomposedMatrix;
};
}
};
#endif // _CHOLESKY_H

View File

@ -184,6 +184,6 @@ namespace gctl
void clbicgstab(array<std::complex<double> > &m, const array<std::complex<double> > &B, std::ostream &ss = std::clog);
void cltfqmr(array<std::complex<double> > &m, const array<std::complex<double> > &B, std::ostream &ss = std::clog);
};
}
};
#endif // _GCTL_CLCG_H

View File

@ -109,6 +109,6 @@ namespace gctl
*/
void get_records(array<double> &logs);
};
}
};
#endif // _GCTL_DWA_H

View File

@ -154,6 +154,6 @@ namespace gctl
*/
void save_records(std::string file);
};
}
};
#endif // _GCTL_GRADNORM_H

View File

@ -554,6 +554,6 @@ namespace gctl
*/
double LBFGS_MinimizePreconditioned(array<double> &m, std::ostream &ss = std::clog, bool err_throw = false);
};
}
};
#endif // _GCTL_LBFGS_H

View File

@ -385,6 +385,6 @@ namespace gctl
*/
void lspg(array<double> &m, const array<double> &B, const array<double> &low, const array<double> &hig, std::ostream &ss = std::clog);
};
}
};
#endif // _GCTL_LCG_H

View File

@ -287,6 +287,6 @@ namespace gctl
bool lgd_silent_, lgd_has_range_, lgd_has_alpha_, lgd_save_trace_;
array<double> lgd_low_, lgd_hig_, lgd_alpha_, lgd_trace_;
};
}
};
#endif // _GCTL_LGD_H

View File

@ -120,6 +120,6 @@ namespace gctl
array<double> tars_, diff_;
array<double> us_;
};
}
};
#endif // _GCTL_LOSS_FUNC_H

View File

@ -51,6 +51,6 @@ namespace gctl
matrix<double> &decomposedMatrix; // Output matrix after decomposition
array<int> rowPermutation; // Permutation of rows during pivoting
};
}
};
#endif // _GCTL_LU_H

View File

@ -196,6 +196,6 @@ namespace gctl
void SGD_Minimize(array<double> &m, sgd_solver_type solver_id = ADAM, std::ostream &ss = std::clog, bool verbose = true, bool err_throw = false);
};
}
};
#endif // _GCTL_SGD_H

View File

@ -74,6 +74,6 @@ namespace gctl
int maxi_iteration, K;
double epsilon;
};
}
};
#endif // _GCTL_SVD_H