Line data Source code
1 0 : // Distributed under the MIT License. 2 : // See LICENSE.txt for details. 3 : 4 : #pragma once 5 : 6 : #include <cstddef> 7 : 8 : /// \cond 9 : namespace Spectral { 10 : enum class Basis : uint8_t; 11 : } // namespace Spectral 12 : /// \endcond 13 : 14 : namespace Spectral { 15 : /*! 16 : * \brief Compute the function values of the basis function \f$\Phi_k(x)\f$ 17 : * (zero-indexed). 18 : */ 19 : template <Basis BasisType, typename T> 20 1 : T compute_basis_function_value(size_t k, const T& x); 21 : } // namespace Spectral