[libcxx-commits] [libcxx] [libc++][math] Mathematical Special Functions: Hermite Polynomial (PR #89982)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sat May 4 12:07:53 PDT 2024
================
@@ -0,0 +1,312 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// UNSUPPORTED: c++03, c++11, c++14
+// <cmath>
+
+// Tests std::hermite and its related functions:
+// double hermite( unsigned n, double x);
+// float hermite( unsigned n, float x);
+// long double hermite( unsigned n, long double x);
+// float hermitef(unsigned n, float x);
+// long double hermitel(unsigned n, long double x);
+// template <class Integer>
+// double hermite( unsigned n, Integer x);
+
+#include <array>
+#include <cassert>
+#include <cmath>
+#include <limits>
+#include <vector>
+
+#include "type_algorithms.h"
+
+inline constexpr unsigned MAX_N = 128;
----------------
PaulXiCao wrote:
Renamed the constant to `g_max_n` in df4eadfa73f14831d6cd1bd045d5f5081dea31d6. Unsure if this is the correct naming scheme as I did not find another file with an example. Let me know if it should be changed to something else.
https://github.com/llvm/llvm-project/pull/89982
More information about the libcxx-commits
mailing list