# Any Least Squares implementations?

**URL:** <https://forums.developer.nvidia.com/t/any-least-squares-implementations/5034>\
**Category:** CUDA Programming and Performance\
**Created:** [August 14, 2008, 7:19pm UTC](https://forums.developer.nvidia.com/t/any-least-squares-implementations/5034 "2008-08-14T19:19:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ColinS](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ColinS](https://forums.developer.nvidia.com/u/ColinS)\
**Post date:** [August 14, 2008, 7:19pm UTC](https://forums.developer.nvidia.com/t/any-least-squares-implementations/5034/1 "2008-08-14T19:19:47Z")

</div>

Hey. Does anyone know if there are any good, fast, and stable least squares implementations available for CUDA? I’ve looked around, and I can’t find anything.

---

<div class="post-metadata">

**Author:** ![Geli](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Geli](https://forums.developer.nvidia.com/u/Geli)\
**Post date:** [August 15, 2008, 9:40pm UTC](https://forums.developer.nvidia.com/t/any-least-squares-implementations/5034/2 "2008-08-15T21:40:15Z")

</div>

Least squares of what? Because imho regular least squares function regression where a linear compination of some functions is calculated is essentially a linear algebra problem and thus you can use CUBLAS…

---

<div class="post-metadata">

**Author:** ![ColinS](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ColinS](https://forums.developer.nvidia.com/u/ColinS)\
**Post date:** [August 15, 2008, 11:17pm UTC](https://forums.developer.nvidia.com/t/any-least-squares-implementations/5034/3 "2008-08-15T23:17:01Z")

</div>

I need the least squares of a cubic function, and higher order functions. I’ve taken a brief look at cublas, but I didn’t see anything I could readily use. I didn’t even see any QR, Cholesky or SVD factorizations…maybe I’m missing something? Anyway, I’m almost done implementing my Cholesky factorization, and that’s most of the work already.
