Loading...
Searching...
No Matches
eonc::tunneling::PhysicalQuadraticBath::Evaluation Struct Reference

#include <PhysicalQuadraticBath.h>

Public Member Functions

Eigen::MatrixXd solveBath (const Eigen::MatrixXd &rhs) const

Public Attributes

double energy = 0.0
std::vector< Eigen::VectorXd > gradient
Eigen::MatrixXd hessian
std::vector< Eigen::VectorXd > bathPositions
std::vector< Eigen::VectorXd > inverseBath
std::vector< Eigen::MatrixXd > sourceJacobians
 Mixed bath/retained Hessians, including E_i*y for variable curvature.
std::shared_ptr< const CyclicBlockBath > blockBath
double bathLogDeterminant = 0.0

Detailed Description

Definition at line 42 of file PhysicalQuadraticBath.h.

Member Function Documentation

◆ solveBath()

Eigen::MatrixXd eonc::tunneling::PhysicalQuadraticBath::Evaluation::solveBath ( const Eigen::MatrixXd & rhs) const
inline

Definition at line 53 of file PhysicalQuadraticBath.h.

53 {
54 if (blockBath)
55 return blockBath->solve(rhs);
56 if (inverseBath.empty())
57 throw std::logic_error("bath inverse requires a Hessian evaluation");
58 const long n = inverseBath.size(), b = inverseBath.front().size();
59 if (rhs.rows() != n * b || !rhs.allFinite())
60 throw std::invalid_argument("physical bath right hand side mismatch");
61 Eigen::MatrixXd result = Eigen::MatrixXd::Zero(n * b, rhs.cols());
62 for (long j = 0; j < n; ++j)
63 for (long l = 0; l < n; ++l)
64 result.middleRows(j * b, b).noalias() +=
65 inverseBath[(j - l + n) % n].asDiagonal() *
66 rhs.middleRows(l * b, b);
67 return result;
68 }
std::shared_ptr< const CyclicBlockBath > blockBath

Member Data Documentation

◆ bathLogDeterminant

double eonc::tunneling::PhysicalQuadraticBath::Evaluation::bathLogDeterminant = 0.0

Definition at line 51 of file PhysicalQuadraticBath.h.

◆ bathPositions

std::vector<Eigen::VectorXd> eonc::tunneling::PhysicalQuadraticBath::Evaluation::bathPositions

Definition at line 46 of file PhysicalQuadraticBath.h.

◆ blockBath

std::shared_ptr<const CyclicBlockBath> eonc::tunneling::PhysicalQuadraticBath::Evaluation::blockBath

Definition at line 50 of file PhysicalQuadraticBath.h.

◆ energy

double eonc::tunneling::PhysicalQuadraticBath::Evaluation::energy = 0.0

Definition at line 43 of file PhysicalQuadraticBath.h.

◆ gradient

std::vector<Eigen::VectorXd> eonc::tunneling::PhysicalQuadraticBath::Evaluation::gradient

Definition at line 44 of file PhysicalQuadraticBath.h.

◆ hessian

Eigen::MatrixXd eonc::tunneling::PhysicalQuadraticBath::Evaluation::hessian

Definition at line 45 of file PhysicalQuadraticBath.h.

◆ inverseBath

std::vector<Eigen::VectorXd> eonc::tunneling::PhysicalQuadraticBath::Evaluation::inverseBath

Definition at line 47 of file PhysicalQuadraticBath.h.

◆ sourceJacobians

std::vector<Eigen::MatrixXd> eonc::tunneling::PhysicalQuadraticBath::Evaluation::sourceJacobians

Mixed bath/retained Hessians, including E_i*y for variable curvature.

Definition at line 49 of file PhysicalQuadraticBath.h.


The documentation for this struct was generated from the following file: