[libcxx-commits] [libcxx] [libc++][math][c++17] P0226R1 - Mathematical Special Functions: infra + `std::assoc_laguerre` (PR #205649)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jun 25 04:08:17 PDT 2026


================
@@ -0,0 +1,23 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+// REQUIRES: std-at-least-c++17
+
+// <cmath>
+//
+// [sf.cmath.assoc.laguerre], associated Laguerre polynomials
+// float               assoc_laguerref(unsigned n, unsigned m, float x);
+
+#include <cassert>
+#include <cmath>
+
+int main() {
+  // Single value tested against known solution.
+  // Note, underlying Boost.Math is itself well-tested.
----------------
PaulXiCao wrote:

I already have a local commit with tests taken from the Phabricator case. Unsure if it's extensive enough though. Will ping you once I have uploaded it.

https://github.com/llvm/llvm-project/pull/205649


More information about the libcxx-commits mailing list