// // BAGEL - Brilliantly Advanced General Electronic Structure Library // Filename: relhcore_london.h // Copyright (C) 2014 Toru Shiozaki // // Author: Ryan D. Reynolds // Maintainer: Shiozaki group // // This file is part of the BAGEL package. // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see . // #ifndef __SRC_LONDON_RELHCORE_LONDON_H #define __SRC_LONDON_RELHCORE_LONDON_H #include #include #include #include #include #include namespace bagel { class RelHcore_London : public ZMatrix { protected: const std::shared_ptr geom_; const std::shared_ptr kinetic_; const std::shared_ptr hcore_; const std::shared_ptr nai_; const std::shared_ptr overlap_; std::shared_ptr> smallnai_; void compute_(); public: RelHcore_London(const std::shared_ptr geom) : ZMatrix(geom->nbasis()*4, geom->nbasis()*4), geom_(geom), kinetic_(std::make_shared(geom_)), hcore_(std::make_shared(geom_)), nai_(std::make_shared(*hcore_ - *kinetic_)), overlap_(std::make_shared(geom_)) { smallnai_ = std::make_shared>(geom_); if (geom_->has_finite_nucleus()) { smallnai_->ax_plus_y(1.0, *std::make_shared>(geom_)); } compute_(); } }; } #endif