Loading...
Searching...
No Matches
Davidson.h
Go to the documentation of this file.
1/*
2** This file is part of eOn.
3**
4** SPDX-License-Identifier: BSD-3-Clause
5**
6** Copyright (c) 2010--present, eOn Development Team
7** All rights reserved.
8**
9** Repo:
10** https://github.com/TheochemUI/eOn
11*/
12#pragma once
13#include "Eigen.h"
14#include "EonLogger.h"
15
16#include "LowestEigenmode.h"
17#include "Matter.h"
18#include "Parameters.h"
19
20namespace eonc {
21
31class Davidson : public LowestEigenmode {
32
33public:
34 Davidson(std::shared_ptr<Matter> matter, const Parameters &params,
35 std::shared_ptr<Potential> pot);
36 ~Davidson() = default;
37 void compute(std::shared_ptr<Matter> matter,
38 AtomMatrix initialDirection) override;
39 void compute(std::shared_ptr<Matter> matter, AtomMatrix initialDirection,
40 const VectorXi &mobileAtoms);
41 double getEigenvalue() override;
42 AtomMatrix getEigenvector() override;
43
44private:
46 double lowestEw;
48};
49
50} // namespace eonc
Eigen::Matrix< double, Eigen::Dynamic, 3, eOnStorageOrder > AtomMatrix
Definition Eigen.h:37
double lowestEw
Definition Davidson.h:46
~Davidson()=default
AtomMatrix lowestEv
Definition Davidson.h:45
eonc::log::Scoped log
Definition Davidson.h:47
Davidson(std::shared_ptr< Matter > matter, const Parameters &params, std::shared_ptr< Potential > pot)
Definition Davidson.cpp:36
void compute(std::shared_ptr< Matter > matter, AtomMatrix initialDirection) override
Definition Davidson.cpp:44
double getEigenvalue() override
Definition Davidson.cpp:209
AtomMatrix getEigenvector() override
Definition Davidson.cpp:211
const Parameters & params
std::shared_ptr< Potential > pot
LowestEigenmode(std::shared_ptr< Potential > potPassed, const Parameters &parameters)
RAII resource manager for the ARTn C library with global synchronization.
RAII helper for class-scoped logging.
Definition EonLogger.h:171