1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580
|
/*! \file */
/* ************************************************************************
* Copyright (C) 2023 Advanced Micro Devices, Inc. All rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the Software), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* ************************************************************************ */
#ifndef ROCSPARSE_CSRSV_H
#define ROCSPARSE_CSRSV_H
#include "../../rocsparse-types.h"
#include "rocsparse/rocsparse-export.h"
#ifdef __cplusplus
extern "C" {
#endif
/*! \ingroup level2_module
* \brief Sparse triangular solve using CSR storage format
*
* \details
* \p rocsparse_csrsv_zero_pivot returns \ref rocsparse_status_zero_pivot, if either a
* structural or numerical zero has been found during rocsparse_scsrsv_solve(),
* rocsparse_dcsrsv_solve(), rocsparse_ccsrsv_solve() or rocsparse_zcsrsv_solve()
* computation. The first zero pivot \f$j\f$ at \f$A_{j,j}\f$ is stored in \p position,
* using same index base as the CSR matrix.
*
* \p position can be in host or device memory. If no zero pivot has been found,
* \p position is set to -1 and \ref rocsparse_status_success is returned instead.
*
* \note \p rocsparse_csrsv_zero_pivot is a blocking function. It might influence
* performance negatively.
*
* \note
* This routine does not support execution in a hipGraph context.
*
* @param[in]
* handle handle to the rocsparse library context queue.
* @param[in]
* descr descriptor of the sparse CSR matrix.
* @param[in]
* info structure that holds the information collected during the analysis step.
* @param[inout]
* position pointer to zero pivot \f$j\f$, can be in host or device memory.
*
* \retval rocsparse_status_success the operation completed successfully.
* \retval rocsparse_status_invalid_handle the library context was not initialized.
* \retval rocsparse_status_invalid_pointer \p info or \p position pointer is
* invalid.
* \retval rocsparse_status_internal_error an internal error occurred.
* \retval rocsparse_status_zero_pivot zero pivot has been found.
*/
ROCSPARSE_EXPORT
rocsparse_status rocsparse_csrsv_zero_pivot(rocsparse_handle handle,
const rocsparse_mat_descr descr,
rocsparse_mat_info info,
rocsparse_int* position);
/*! \ingroup level2_module
* \brief Sparse triangular solve using CSR storage format
*
* \details
* \p rocsparse_csrsv_buffer_size returns the size of the temporary storage buffer that
* is required by rocsparse_scsrsv_analysis(), rocsparse_dcsrsv_analysis(),
* rocsparse_ccsrsv_analysis(), rocsparse_zcsrsv_analysis(), rocsparse_scsrsv_solve(),
* rocsparse_dcsrsv_solve(), rocsparse_ccsrsv_solve() and rocsparse_zcsrsv_solve(). The
* temporary storage buffer must be allocated by the user. The size of the temporary
* storage buffer is identical to the size returned by rocsparse_scsrilu0_buffer_size(),
* rocsparse_dcsrilu0_buffer_size(), rocsparse_ccsrilu0_buffer_size() and
* rocsparse_zcsrilu0_buffer_size() if the matrix sparsity pattern is identical. The
* user allocated buffer can thus be shared between subsequent calls to those functions.
*
* \note
* This function is non blocking and executed asynchronously with respect to the host.
* It may return before the actual computation has finished.
*
* \note
* This routine supports execution in a hipGraph context.
*
* @param[in]
* handle handle to the rocsparse library context queue.
* @param[in]
* trans matrix operation type.
* @param[in]
* m number of rows of the sparse CSR matrix.
* @param[in]
* nnz number of non-zero entries of the sparse CSR matrix.
* @param[in]
* descr descriptor of the sparse CSR matrix.
* @param[in]
* csr_val array of \p nnz elements of the sparse CSR matrix.
* @param[in]
* csr_row_ptr array of \p m+1 elements that point to the start of every row of the
* sparse CSR matrix.
* @param[in]
* csr_col_ind array of \p nnz elements containing the column indices of the sparse
* CSR matrix.
* @param[out]
* info structure that holds the information collected during the analysis step.
* @param[out]
* buffer_size number of bytes of the temporary storage buffer required by
* rocsparse_scsrsv_analysis(), rocsparse_dcsrsv_analysis(),
* rocsparse_ccsrsv_analysis(), rocsparse_zcsrsv_analysis(),
* rocsparse_scsrsv_solve(), rocsparse_dcsrsv_solve(),
* rocsparse_ccsrsv_solve() and rocsparse_zcsrsv_solve().
*
* \retval rocsparse_status_success the operation completed successfully.
* \retval rocsparse_status_invalid_handle the library context was not initialized.
* \retval rocsparse_status_invalid_size \p m or \p nnz is invalid.
* \retval rocsparse_status_invalid_pointer \p descr, \p csr_val, \p csr_row_ptr,
* \p csr_col_ind, \p info or \p buffer_size pointer is invalid.
* \retval rocsparse_status_internal_error an internal error occurred.
* \retval rocsparse_status_not_implemented
* \p trans == \ref rocsparse_operation_conjugate_transpose or
* \ref rocsparse_matrix_type != \ref rocsparse_matrix_type_general.
*/
/**@{*/
ROCSPARSE_EXPORT
rocsparse_status rocsparse_scsrsv_buffer_size(rocsparse_handle handle,
rocsparse_operation trans,
rocsparse_int m,
rocsparse_int nnz,
const rocsparse_mat_descr descr,
const float* csr_val,
const rocsparse_int* csr_row_ptr,
const rocsparse_int* csr_col_ind,
rocsparse_mat_info info,
size_t* buffer_size);
ROCSPARSE_EXPORT
rocsparse_status rocsparse_dcsrsv_buffer_size(rocsparse_handle handle,
rocsparse_operation trans,
rocsparse_int m,
rocsparse_int nnz,
const rocsparse_mat_descr descr,
const double* csr_val,
const rocsparse_int* csr_row_ptr,
const rocsparse_int* csr_col_ind,
rocsparse_mat_info info,
size_t* buffer_size);
ROCSPARSE_EXPORT
rocsparse_status rocsparse_ccsrsv_buffer_size(rocsparse_handle handle,
rocsparse_operation trans,
rocsparse_int m,
rocsparse_int nnz,
const rocsparse_mat_descr descr,
const rocsparse_float_complex* csr_val,
const rocsparse_int* csr_row_ptr,
const rocsparse_int* csr_col_ind,
rocsparse_mat_info info,
size_t* buffer_size);
ROCSPARSE_EXPORT
rocsparse_status rocsparse_zcsrsv_buffer_size(rocsparse_handle handle,
rocsparse_operation trans,
rocsparse_int m,
rocsparse_int nnz,
const rocsparse_mat_descr descr,
const rocsparse_double_complex* csr_val,
const rocsparse_int* csr_row_ptr,
const rocsparse_int* csr_col_ind,
rocsparse_mat_info info,
size_t* buffer_size);
/**@}*/
/*! \ingroup level2_module
* \brief Sparse triangular solve using CSR storage format
*
* \details
* \p rocsparse_csrsv_analysis performs the analysis step for rocsparse_scsrsv_solve(),
* rocsparse_dcsrsv_solve(), rocsparse_ccsrsv_solve() and rocsparse_zcsrsv_solve(). It
* is expected that this function will be executed only once for a given matrix and
* particular operation type. The analysis meta data can be cleared by
* rocsparse_csrsv_clear().
*
* \p rocsparse_csrsv_analysis can share its meta data with
* rocsparse_scsrsm_analysis(), rocsparse_dcsrsm_analysis(),
* rocsparse_ccsrsm_analysis(), rocsparse_zcsrsm_analysis(),
* rocsparse_scsrilu0_analysis(), rocsparse_dcsrilu0_analysis(),
* rocsparse_ccsrilu0_analysis(), rocsparse_zcsrilu0_analysis(),
* rocsparse_scsric0_analysis(), rocsparse_dcsric0_analysis(),
* rocsparse_ccsric0_analysis() and rocsparse_zcsric0_analysis(). Selecting
* \ref rocsparse_analysis_policy_reuse policy can greatly improve computation
* performance of meta data. However, the user need to make sure that the sparsity
* pattern remains unchanged. If this cannot be assured,
* \ref rocsparse_analysis_policy_force has to be used.
*
* \note
* If the matrix sparsity pattern changes, the gathered information will become invalid.
*
* \note
* This function is blocking with respect to the host.
*
* \note
* This routine does not support execution in a hipGraph context.
*
* @param[in]
* handle handle to the rocsparse library context queue.
* @param[in]
* trans matrix operation type.
* @param[in]
* m number of rows of the sparse CSR matrix.
* @param[in]
* nnz number of non-zero entries of the sparse CSR matrix.
* @param[in]
* descr descriptor of the sparse CSR matrix.
* @param[in]
* csr_val array of \p nnz elements of the sparse CSR matrix.
* @param[in]
* csr_row_ptr array of \p m+1 elements that point to the start of every row of the
* sparse CSR matrix.
* @param[in]
* csr_col_ind array of \p nnz elements containing the column indices of the sparse
* CSR matrix.
* @param[out]
* info structure that holds the information collected during
* the analysis step.
* @param[in]
* analysis \ref rocsparse_analysis_policy_reuse or
* \ref rocsparse_analysis_policy_force.
* @param[in]
* solve \ref rocsparse_solve_policy_auto.
* @param[in]
* temp_buffer temporary storage buffer allocated by the user.
*
* \retval rocsparse_status_success the operation completed successfully.
* \retval rocsparse_status_invalid_handle the library context was not initialized.
* \retval rocsparse_status_invalid_size \p m or \p nnz is invalid.
* \retval rocsparse_status_invalid_pointer \p descr, \p csr_row_ptr,
* \p csr_col_ind, \p info or \p temp_buffer pointer is invalid.
* \retval rocsparse_status_internal_error an internal error occurred.
* \retval rocsparse_status_not_implemented
* \p trans == \ref rocsparse_operation_conjugate_transpose or
* \ref rocsparse_matrix_type != \ref rocsparse_matrix_type_general.
*/
/**@{*/
ROCSPARSE_EXPORT
rocsparse_status rocsparse_scsrsv_analysis(rocsparse_handle handle,
rocsparse_operation trans,
rocsparse_int m,
rocsparse_int nnz,
const rocsparse_mat_descr descr,
const float* csr_val,
const rocsparse_int* csr_row_ptr,
const rocsparse_int* csr_col_ind,
rocsparse_mat_info info,
rocsparse_analysis_policy analysis,
rocsparse_solve_policy solve,
void* temp_buffer);
ROCSPARSE_EXPORT
rocsparse_status rocsparse_dcsrsv_analysis(rocsparse_handle handle,
rocsparse_operation trans,
rocsparse_int m,
rocsparse_int nnz,
const rocsparse_mat_descr descr,
const double* csr_val,
const rocsparse_int* csr_row_ptr,
const rocsparse_int* csr_col_ind,
rocsparse_mat_info info,
rocsparse_analysis_policy analysis,
rocsparse_solve_policy solve,
void* temp_buffer);
ROCSPARSE_EXPORT
rocsparse_status rocsparse_ccsrsv_analysis(rocsparse_handle handle,
rocsparse_operation trans,
rocsparse_int m,
rocsparse_int nnz,
const rocsparse_mat_descr descr,
const rocsparse_float_complex* csr_val,
const rocsparse_int* csr_row_ptr,
const rocsparse_int* csr_col_ind,
rocsparse_mat_info info,
rocsparse_analysis_policy analysis,
rocsparse_solve_policy solve,
void* temp_buffer);
ROCSPARSE_EXPORT
rocsparse_status rocsparse_zcsrsv_analysis(rocsparse_handle handle,
rocsparse_operation trans,
rocsparse_int m,
rocsparse_int nnz,
const rocsparse_mat_descr descr,
const rocsparse_double_complex* csr_val,
const rocsparse_int* csr_row_ptr,
const rocsparse_int* csr_col_ind,
rocsparse_mat_info info,
rocsparse_analysis_policy analysis,
rocsparse_solve_policy solve,
void* temp_buffer);
/**@}*/
/*! \ingroup level2_module
* \brief Sparse triangular solve using CSR storage format
*
* \details
* \p rocsparse_csrsv_clear deallocates all memory that was allocated by
* rocsparse_scsrsv_analysis(), rocsparse_dcsrsv_analysis(), rocsparse_ccsrsv_analysis()
* or rocsparse_zcsrsv_analysis(). This is especially useful, if memory is an issue and
* the analysis data is not required for further computation, e.g. when switching to
* another sparse matrix format. Calling \p rocsparse_csrsv_clear is optional. All
* allocated resources will be cleared, when the opaque \ref rocsparse_mat_info struct
* is destroyed using rocsparse_destroy_mat_info().
*
* \note
* This routine does not support execution in a hipGraph context.
*
* @param[in]
* handle handle to the rocsparse library context queue.
* @param[in]
* descr descriptor of the sparse CSR matrix.
* @param[inout]
* info structure that holds the information collected during the analysis step.
*
* \retval rocsparse_status_success the operation completed successfully.
* \retval rocsparse_status_invalid_handle the library context was not initialized.
* \retval rocsparse_status_invalid_pointer \p info pointer is invalid.
* \retval rocsparse_status_memory_error the buffer holding the meta data could not
* be deallocated.
* \retval rocsparse_status_internal_error an internal error occurred.
*/
ROCSPARSE_EXPORT
rocsparse_status rocsparse_csrsv_clear(rocsparse_handle handle,
const rocsparse_mat_descr descr,
rocsparse_mat_info info);
/*! \ingroup level2_module
* \brief Sparse triangular solve using CSR storage format
*
* \details
* \p rocsparse_csrsv_solve solves a sparse triangular linear system of a sparse
* \f$m \times m\f$ matrix, defined in CSR storage format, a dense solution vector
* \f$y\f$ and the right-hand side \f$x\f$ that is multiplied by \f$\alpha\f$, such that
* \f[
* op(A) \cdot y = \alpha \cdot x,
* \f]
* with
* \f[
* op(A) = \left\{
* \begin{array}{ll}
* A, & \text{if trans == rocsparse_operation_none} \\
* A^T, & \text{if trans == rocsparse_operation_transpose} \\
* A^H, & \text{if trans == rocsparse_operation_conjugate_transpose}
* \end{array}
* \right.
* \f]
*
* \p rocsparse_csrsv_solve requires a user allocated temporary buffer. Its size is
* returned by rocsparse_scsrsv_buffer_size(), rocsparse_dcsrsv_buffer_size(),
* rocsparse_ccsrsv_buffer_size() or rocsparse_zcsrsv_buffer_size(). Furthermore,
* analysis meta data is required. It can be obtained by rocsparse_scsrsv_analysis(),
* rocsparse_dcsrsv_analysis(), rocsparse_ccsrsv_analysis() or
* rocsparse_zcsrsv_analysis(). \p rocsparse_csrsv_solve reports the first zero pivot
* (either numerical or structural zero). The zero pivot status can be checked calling
* rocsparse_csrsv_zero_pivot(). If
* \ref rocsparse_diag_type == \ref rocsparse_diag_type_unit, no zero pivot will be
* reported, even if \f$A_{j,j} = 0\f$ for some \f$j\f$.
*
* \note
* The sparse CSR matrix has to be sorted. This can be achieved by calling
* rocsparse_csrsort().
*
* \note
* This function is non blocking and executed asynchronously with respect to the host.
* It may return before the actual computation has finished.
*
* \note
* Currently, only \p trans == \ref rocsparse_operation_none and
* \p trans == \ref rocsparse_operation_transpose is supported.
*
* \note
* This routine supports execution in a hipGraph context.
*
* @param[in]
* handle handle to the rocsparse library context queue.
* @param[in]
* trans matrix operation type.
* @param[in]
* m number of rows of the sparse CSR matrix.
* @param[in]
* nnz number of non-zero entries of the sparse CSR matrix.
* @param[in]
* alpha scalar \f$\alpha\f$.
* @param[in]
* descr descriptor of the sparse CSR matrix.
* @param[in]
* csr_val array of \p nnz elements of the sparse CSR matrix.
* @param[in]
* csr_row_ptr array of \p m+1 elements that point to the start
* of every row of the sparse CSR matrix.
* @param[in]
* csr_col_ind array of \p nnz elements containing the column indices of the sparse
* CSR matrix.
* @param[in]
* info structure that holds the information collected during the analysis step.
* @param[in]
* x array of \p m elements, holding the right-hand side.
* @param[out]
* y array of \p m elements, holding the solution.
* @param[in]
* policy \ref rocsparse_solve_policy_auto.
* @param[in]
* temp_buffer temporary storage buffer allocated by the user.
*
* \retval rocsparse_status_success the operation completed successfully.
* \retval rocsparse_status_invalid_handle the library context was not initialized.
* \retval rocsparse_status_invalid_size \p m or \p nnz is invalid.
* \retval rocsparse_status_invalid_pointer \p descr, \p alpha, \p csr_val,
* \p csr_row_ptr, \p csr_col_ind, \p x or \p y pointer is invalid.
* \retval rocsparse_status_arch_mismatch the device is not supported.
* \retval rocsparse_status_internal_error an internal error occurred.
* \retval rocsparse_status_not_implemented
* \p trans == \ref rocsparse_operation_conjugate_transpose or
* \ref rocsparse_matrix_type != \ref rocsparse_matrix_type_general.
*
* \par Example
* Consider the lower triangular \f$m \times m\f$ matrix \f$L\f$, stored in CSR
* storage format with unit diagonal. The following example solves \f$L \cdot y = x\f$.
* \code{.c}
* // Create rocSPARSE handle
* rocsparse_handle handle;
* rocsparse_create_handle(&handle);
*
* // Create matrix descriptor
* rocsparse_mat_descr descr;
* rocsparse_create_mat_descr(&descr);
* rocsparse_set_mat_fill_mode(descr, rocsparse_fill_mode_lower);
* rocsparse_set_mat_diag_type(descr, rocsparse_diag_type_unit);
*
* // Create matrix info structure
* rocsparse_mat_info info;
* rocsparse_create_mat_info(&info);
*
* // Obtain required buffer size
* size_t buffer_size;
* rocsparse_dcsrsv_buffer_size(handle,
* rocsparse_operation_none,
* m,
* nnz,
* descr,
* csr_val,
* csr_row_ptr,
* csr_col_ind,
* info,
* &buffer_size);
*
* // Allocate temporary buffer
* void* temp_buffer;
* hipMalloc(&temp_buffer, buffer_size);
*
* // Perform analysis step
* rocsparse_dcsrsv_analysis(handle,
* rocsparse_operation_none,
* m,
* nnz,
* descr,
* csr_val,
* csr_row_ptr,
* csr_col_ind,
* info,
* rocsparse_analysis_policy_reuse,
* rocsparse_solve_policy_auto,
* temp_buffer);
*
* // Solve Ly = x
* rocsparse_dcsrsv_solve(handle,
* rocsparse_operation_none,
* m,
* nnz,
* &alpha,
* descr,
* csr_val,
* csr_row_ptr,
* csr_col_ind,
* info,
* x,
* y,
* rocsparse_solve_policy_auto,
* temp_buffer);
*
* // No zero pivot should be found, with L having unit diagonal
*
* // Clean up
* hipFree(temp_buffer);
* rocsparse_destroy_mat_info(info);
* rocsparse_destroy_mat_descr(descr);
* rocsparse_destroy_handle(handle);
* \endcode
*/
/**@{*/
ROCSPARSE_EXPORT
rocsparse_status rocsparse_scsrsv_solve(rocsparse_handle handle,
rocsparse_operation trans,
rocsparse_int m,
rocsparse_int nnz,
const float* alpha,
const rocsparse_mat_descr descr,
const float* csr_val,
const rocsparse_int* csr_row_ptr,
const rocsparse_int* csr_col_ind,
rocsparse_mat_info info,
const float* x,
float* y,
rocsparse_solve_policy policy,
void* temp_buffer);
ROCSPARSE_EXPORT
rocsparse_status rocsparse_dcsrsv_solve(rocsparse_handle handle,
rocsparse_operation trans,
rocsparse_int m,
rocsparse_int nnz,
const double* alpha,
const rocsparse_mat_descr descr,
const double* csr_val,
const rocsparse_int* csr_row_ptr,
const rocsparse_int* csr_col_ind,
rocsparse_mat_info info,
const double* x,
double* y,
rocsparse_solve_policy policy,
void* temp_buffer);
ROCSPARSE_EXPORT
rocsparse_status rocsparse_ccsrsv_solve(rocsparse_handle handle,
rocsparse_operation trans,
rocsparse_int m,
rocsparse_int nnz,
const rocsparse_float_complex* alpha,
const rocsparse_mat_descr descr,
const rocsparse_float_complex* csr_val,
const rocsparse_int* csr_row_ptr,
const rocsparse_int* csr_col_ind,
rocsparse_mat_info info,
const rocsparse_float_complex* x,
rocsparse_float_complex* y,
rocsparse_solve_policy policy,
void* temp_buffer);
ROCSPARSE_EXPORT
rocsparse_status rocsparse_zcsrsv_solve(rocsparse_handle handle,
rocsparse_operation trans,
rocsparse_int m,
rocsparse_int nnz,
const rocsparse_double_complex* alpha,
const rocsparse_mat_descr descr,
const rocsparse_double_complex* csr_val,
const rocsparse_int* csr_row_ptr,
const rocsparse_int* csr_col_ind,
rocsparse_mat_info info,
const rocsparse_double_complex* x,
rocsparse_double_complex* y,
rocsparse_solve_policy policy,
void* temp_buffer);
/**@}*/
#ifdef __cplusplus
}
#endif
#endif /* ROCSPARSE_CSRSV_H */
|