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
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) {
38 case DFTCode::W90:
40 default: throw std::invalid_argument("Unknown DFTCode");
41 }
42 }
43
44} // namespace triqs::modest::dft_tools
nda::matrix< dcomplex > get_spherical_to_dft_rotation(long l)
nda::matrix< dcomplex > get_spherical_to_dft_rotation(long l)
nda::matrix< dcomplex > get_spherical_to_dft_rotation(long l)
nda::matrix< dcomplex > get_spherical_to_dft_rotation(DFTCode code, long l)
DFTCode
Enumeration of supported DFT codes.
Definition utils.hpp:14