12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
-
-
-
-
-
-
- #include "quasinewtonbfgs.h"
-
-
- namespace Lemma {
-
-
-
- std::ostream &operator<<(std::ostream &stream,
- const QuasiNewtonBFGS &ob) {
- stream << *(InverseSolver*)(&ob);
- return stream;
- }
-
-
-
-
- QuasiNewtonBFGS* QuasiNewtonBFGS::New() {
- QuasiNewtonBFGS* Object = new QuasiNewtonBFGS("QuasiNewtonBFGS");
- Object->AttachTo(Object);
- return Object;
- }
-
- QuasiNewtonBFGS::QuasiNewtonBFGS(const std::string &name) :
- InverseSolver(name) {
- }
-
- void QuasiNewtonBFGS::Delete() {
- this->DetachFrom(this);
- }
-
- void QuasiNewtonBFGS::Release() {
- delete this;
- }
-
- QuasiNewtonBFGS::~QuasiNewtonBFGS() {
- if (this->NumberOfReferences != 0)
- throw DeleteObjectWithReferences( this );
- }
-
-
-
- int QuasiNewtonBFGS::NumberOfIterations() {
- return 0;
- }
-
- bool QuasiNewtonBFGS::Success () {
- return false;
- }
-
- void QuasiNewtonBFGS::PrintNorm() {
- std::cout << "Norm " << std::endl;
- PredictedData->Zero();
- std::cout << ObservedData->Norm(PredictedData) << std::endl;
- }
-
- VectorXr QuasiNewtonBFGS::GetPhiMVector() {
- VectorXr NewVec(2);
- return NewVec;
- }
-
- VectorXr QuasiNewtonBFGS::GetPhiDVector() {
- VectorXr NewVec(2);
- return NewVec;
- }
-
- void QuasiNewtonBFGS::FillInG(const Vector3r& pos, const Vector3r& step) {
-
- }
-
-
-
- }
|