TRIQS/triqs_modest
3.3.0
Modular Electronic Structure Toolkit
Loading...
Searching...
No Matches
spherical_rotation.hpp
Go to the documentation of this file.
1
// Copyright (c) 2025--present, The Simons Foundation
2
// This file is part of TRIQS/modest and is licensed under the terms of GPLv3 or later.
3
// SPDX-License-Identifier: GPL-3.0-or-later
4
// See LICENSE in the root of this distribution for details.
5
6
#pragma once
7
#include "../utils/defs.hpp"
8
#include "
utils.hpp
"
9
10
namespace
triqs::modest::dft_tools
{
11
12
namespace
wien2k {
16
nda::matrix<dcomplex>
get_spherical_to_dft_rotation
(
long
l);
17
}
// namespace wien2k
18
19
namespace
vasp {
23
nda::matrix<dcomplex>
get_spherical_to_dft_rotation
(
long
l);
24
}
// namespace vasp
25
26
namespace
qe {
30
nda::matrix<dcomplex>
get_spherical_to_dft_rotation
(
long
l);
31
}
// namespace qe
32
33
// Dispatcher function for backward compatibility with existing code
34
inline
nda::matrix<dcomplex>
get_spherical_to_dft_rotation
(
DFTCode
code,
long
l) {
35
switch
(code) {
36
case
DFTCode::Wien2k
:
return
wien2k::get_spherical_to_dft_rotation
(l);
37
case
DFTCode::VASP
:
return
vasp::get_spherical_to_dft_rotation
(l);
38
case
DFTCode::W90
:
39
case
DFTCode::QuantumEspresso
:
return
qe::get_spherical_to_dft_rotation
(l);
40
default
:
throw
std::invalid_argument(
"Unknown DFTCode"
);
41
}
42
}
43
44
}
// namespace triqs::modest::dft_tools
triqs::modest::dft_tools::qe::get_spherical_to_dft_rotation
nda::matrix< dcomplex > get_spherical_to_dft_rotation(long l)
Definition
spherical_rotation.cpp:11
triqs::modest::dft_tools::vasp::get_spherical_to_dft_rotation
nda::matrix< dcomplex > get_spherical_to_dft_rotation(long l)
Definition
spherical_rotation.cpp:11
triqs::modest::dft_tools::wien2k::get_spherical_to_dft_rotation
nda::matrix< dcomplex > get_spherical_to_dft_rotation(long l)
Definition
spherical_rotation.cpp:11
triqs::modest::dft_tools
Definition
spherical_rotation.cpp:9
triqs::modest::dft_tools::get_spherical_to_dft_rotation
nda::matrix< dcomplex > get_spherical_to_dft_rotation(DFTCode code, long l)
Definition
spherical_rotation.hpp:34
triqs::modest::DFTCode
DFTCode
Enumeration of supported DFT codes.
Definition
utils.hpp:14
triqs::modest::DFTCode::QuantumEspresso
@ QuantumEspresso
triqs::modest::DFTCode::W90
@ W90
triqs::modest::DFTCode::Wien2k
@ Wien2k
triqs::modest::DFTCode::VASP
@ VASP
utils.hpp
triqs_modest
dft_tools
spherical_rotation.hpp
Generated by
1.9.8