# LU Decomposition with cuDoubleComplex

**URL:** <https://forums.developer.nvidia.com/t/lu-decomposition-with-cudoublecomplex/201658>\
**Category:** GPU-Accelerated Libraries\
**Tags:** cusolver\
**Created:** [January 26, 2022, 1:39pm UTC](https://forums.developer.nvidia.com/t/lu-decomposition-with-cudoublecomplex/201658 "2022-01-26T13:39:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![picard1969](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@picard1969](https://forums.developer.nvidia.com/u/picard1969)\
**Post date:** [January 26, 2022, 1:39pm UTC](https://forums.developer.nvidia.com/t/lu-decomposition-with-cudoublecomplex/201658/1 "2022-01-26T13:39:19Z")

</div>

Good Morning,

I would like to solve a system of equations as a set of matrices and vectors, e.g., Ax = b, using LU Decomposition for complex doubles. I have installed CUDA 11.5 on my Linux system.

Does CUDA have a library with this capability already defined in it? And if so, is there a good reference example where this is used for cuDoubleComplex types?

Thank you for any help.

---

<div class="post-metadata">

**Author:** ![mnicely](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mnicely/32/14047_2.png) [@mnicely](https://forums.developer.nvidia.com/u/mnicely)\
**Post date:** [January 26, 2022, 4:52pm UTC](https://forums.developer.nvidia.com/t/lu-decomposition-with-cudoublecomplex/201658/2 "2022-01-26T16:52:29Z")

</div>

Here is an example using [legacy APIs](https://github.com/NVIDIA/CUDALibrarySamples/tree/master/cuSOLVER/getrf) (getrf and getrs) for LU factorization

Here is an example using the new [Generic 64-bit APIs](https://github.com/NVIDIA/CUDALibrarySamples/tree/master/cuSOLVER/Xgetrf) (Xgetrf and Xgetrs) for LU factorization

You should be able to easily modify `data_type` to for you needs. Let me know if you have issues.

---

<div class="post-metadata">

**Author:** ![picard1969](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@picard1969](https://forums.developer.nvidia.com/u/picard1969)\
**Post date:** [January 26, 2022, 4:53pm UTC](https://forums.developer.nvidia.com/t/lu-decomposition-with-cudoublecomplex/201658/3 "2022-01-26T16:53:25Z")

</div>

Thank you @mnicely for information.

---

<div class="post-metadata">

**Author:** ![mnicely](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mnicely/32/14047_2.png) [@mnicely](https://forums.developer.nvidia.com/u/mnicely)\
**Post date:** [January 26, 2022, 4:57pm UTC](https://forums.developer.nvidia.com/t/lu-decomposition-with-cudoublecomplex/201658/4 "2022-01-26T16:57:07Z")

</div>

I think the inputs are hardcored as reals, but you should get the gist.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [February 9, 2022, 4:57pm UTC](https://forums.developer.nvidia.com/t/lu-decomposition-with-cudoublecomplex/201658/5 "2022-02-09T16:57:59Z")

</div>

Closed on February 9, 2022, 4:57pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
