workspace_compute_qr_sizes#

cuquantum.bindings.cutensornet.workspace_compute_qr_sizes(
intptr_t handle,
intptr_t desc_tensor_in,
intptr_t desc_tensor_q,
intptr_t desc_tensor_r,
intptr_t work_desc,
)[source]#

Computes the workspace size needed to perform the tensor QR operation.

Parameters:
  • handle (intptr_t) – Opaque handle holding cuTensorNet’s library context.

  • desc_tensor_in (intptr_t) – Describes the modes, extents and other metadata information for a tensor.

  • desc_tensor_q (intptr_t) – Describes the modes, extents and other metadata information for the output tensor Q.

  • desc_tensor_r (intptr_t) – Describes the modes, extents and other metadata information for the output tensor R.

  • work_desc (intptr_t) – The workspace descriptor in which the information is collected.