Loading include/dca/function/util/real_complex_conversion.hpp +8 −2 Original line number Diff line number Diff line // Copyright (C) 2018 ETH Zurich // Copyright (C) 2018 UT-Battelle, LLC // Copyright (C) 2022 ETH Zurich // Copyright (C) 2022 UT-Battelle, LLC // All rights reserved. // // See LICENSE for terms of usage. // See CITATION.md for citation guidelines, if DCA++ is used for scientific publications. // // Author: Giovanni Balduzzi (gbalduzz@gitp.phys.ethz.ch) // Peter Doak (doakpw@ornl.gov) // // This file provides utility methods to convert functions from real to complex and vice versa. Loading Loading @@ -36,6 +37,10 @@ auto complex(const function<Scalartype, Dmn>& f) { } namespace detail { /** implementation of function complex to real conversion function * This allows good code reuse with no loss or low loss of performance * in the ignore and warn cases. */ template <typename Scalartype, typename Dmn, ImagCheck IC> auto real(const function<std::complex<Scalartype>, Dmn>& f) { function<Scalartype, Dmn> f_real; Loading Loading @@ -65,6 +70,7 @@ auto real(const function<std::complex<Scalartype>, Dmn>& f) { return f_real; } } // namespace detail // Returns a real valued function that is equal to the real part of f. // If IC == // ImagCheck::FAIL -> throw exception if imaginary part of f is zero Loading include/dca/math/function_transform/special_transforms/momentum_to_space.hpp +2 −2 Original line number Diff line number Diff line // Copyright (C) 2009-2016 ETH Zurich // Copyright (C) 2007?-2016 Center for Nanophase Materials Sciences, ORNL // Copyright (C) 2022 ETH Zurich // Copyright (C) 2022 UT-Battelle, LLC // All rights reserved. // // See LICENSE.txt for terms of usage. Loading include/dca/math/function_transform/special_transforms/space_to_momentum.hpp +2 −2 Original line number Diff line number Diff line // Copyright (C) 2009-2016 ETH Zurich // Copyright (C) 2007?-2016 Center for Nanophase Materials Sciences, ORNL // Copyright (C) 2022 ETH Zurich // Copyright (C) 2022 UT-Battelle, LLC // All rights reserved. // // See LICENSE.txt for terms of usage. Loading Loading
include/dca/function/util/real_complex_conversion.hpp +8 −2 Original line number Diff line number Diff line // Copyright (C) 2018 ETH Zurich // Copyright (C) 2018 UT-Battelle, LLC // Copyright (C) 2022 ETH Zurich // Copyright (C) 2022 UT-Battelle, LLC // All rights reserved. // // See LICENSE for terms of usage. // See CITATION.md for citation guidelines, if DCA++ is used for scientific publications. // // Author: Giovanni Balduzzi (gbalduzz@gitp.phys.ethz.ch) // Peter Doak (doakpw@ornl.gov) // // This file provides utility methods to convert functions from real to complex and vice versa. Loading Loading @@ -36,6 +37,10 @@ auto complex(const function<Scalartype, Dmn>& f) { } namespace detail { /** implementation of function complex to real conversion function * This allows good code reuse with no loss or low loss of performance * in the ignore and warn cases. */ template <typename Scalartype, typename Dmn, ImagCheck IC> auto real(const function<std::complex<Scalartype>, Dmn>& f) { function<Scalartype, Dmn> f_real; Loading Loading @@ -65,6 +70,7 @@ auto real(const function<std::complex<Scalartype>, Dmn>& f) { return f_real; } } // namespace detail // Returns a real valued function that is equal to the real part of f. // If IC == // ImagCheck::FAIL -> throw exception if imaginary part of f is zero Loading
include/dca/math/function_transform/special_transforms/momentum_to_space.hpp +2 −2 Original line number Diff line number Diff line // Copyright (C) 2009-2016 ETH Zurich // Copyright (C) 2007?-2016 Center for Nanophase Materials Sciences, ORNL // Copyright (C) 2022 ETH Zurich // Copyright (C) 2022 UT-Battelle, LLC // All rights reserved. // // See LICENSE.txt for terms of usage. Loading
include/dca/math/function_transform/special_transforms/space_to_momentum.hpp +2 −2 Original line number Diff line number Diff line // Copyright (C) 2009-2016 ETH Zurich // Copyright (C) 2007?-2016 Center for Nanophase Materials Sciences, ORNL // Copyright (C) 2022 ETH Zurich // Copyright (C) 2022 UT-Battelle, LLC // All rights reserved. // // See LICENSE.txt for terms of usage. Loading