pub unsafe extern "C" fn cutensorPlanGetAttribute(
handle: cutensorHandle_t,
plan: cutensorPlan_t,
attr: cutensorPlanAttribute_t,
buf: *mut c_void,
sizeInBytes: size_t,
) -> cutensorStatus_tExpand description
Retrieves information about an already-created plan (see cutensorPlanAttribute_t)
Block-sparse contraction plans only support cutensorPlanAttribute_t::CUTENSOR_PLAN_REQUIRED_WORKSPACE.
§Parameters
plan: Denotes an already-created plan (e.g., via cutensorCreatePlan or cutensorCreatePlanAutotuned).attr: Requested attribute.buf: On successful exit: Holds the information of the requested attribute.sizeInBytes: size ofbufin bytes.
§Return value
cutensorStatus_t::CUTENSOR_STATUS_INVALID_VALUE: if some input data is invalid (this typically indicates an user error).cutensorStatus_t::CUTENSOR_STATUS_SUCCESS: The operation completed successfully.