skcuda.linalg.det(a_gpu, overwrite=False, workspace_gpu=None, ipiv_gpu=None, handle=None, lib='cusolver')[source]

Compute the determinant of a square matrix.

  • a_gpu (pycuda.gpuarray.GPUArray) – The square n*n matrix of which to calculate the determinant.
  • overwrite (bool (default: False)) – Discard data in a (may improve performance).
  • workspace_gpu (pycuda.gpuarray.GPUArray (optional)) – Temporary array of size Lwork (typically computed by CUSOLVER helper functions), can be supplied to save allocations. Only used if lib == ‘cusolver’.
  • ipiv_gpu (pycuda.gpuarray.GPUArray (optional)) – Temporary array of size n, can be supplied to save allocations.
  • handle (int) – CUBLAS context. If no context is specified, the default handle from skcuda.misc._global_cublas_handle is used.
  • lib (str) – Library to use. May be either ‘cula’ or ‘cusolver’.

det – determinant of a_gpu

Return type: