Examples With Singular Value Decomposition#

All examples are in 05_Singular_Value_Decomposition/. Block and thread execution variants are provided.

  • bdsvd_batched_block.cu, bdsvd_batched_thread.cu

These examples compute the singular values (and optionally the singular vectors) of batched upper bidiagonal matrices using the bdsvd API.

  • gesvd_batched_block.cu, gesvd_batched_thread.cu

These examples compute the singular values (and optionally the singular vectors) of batched general matrices using the gesvd API. Results are compared with the cuSolver host API cusolverDn<t>gesvdjBatched and cusolverDnXgesvd.