[libcxx-commits] [libcxx] [libc++][math] Mathematical Special Functions: Hermite Polynomial (PR #89982)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Sat May 4 04:57:54 PDT 2024


================
@@ -238,78 +196,117 @@ std::vector<T> get_roots(unsigned n) {
             T(5.3874808900112)};
 
   default:
-    throw "Roots of Hermite polynomial of order " + std::to_string(n) + " not implemented!\n";
+    assert(0);
----------------
mordante wrote:

```suggestion
    assert(false);
```

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


More information about the libcxx-commits mailing list