|
BeBOP Optimized Sparse Kernel Interface Library
1.0.1h
|
Functions | |
| int | oski_MatMultAndMatTransMult (const oski_matrix_t A_tunable, oski_value_t alpha, const oski_vecview_t x_view, oski_value_t beta, oski_vecview_t y_view, oski_matop_t opA, oski_value_t omega, const oski_vecview_t w_view, oski_value_t zeta, oski_vecview_t z_view) |
Computes and , where . | |
| int | oski_MatTransMatMult (const oski_matrix_t A_tunable, oski_ataop_t op, oski_value_t alpha, const oski_vecview_t x_view, oski_value_t beta, oski_vecview_t y_view, oski_vecview_t t_view) |
Computes , where . | |
| int | oski_MatMult (const oski_matrix_t A_tunable, oski_matop_t opA, oski_value_t alpha, const oski_vecview_t x_view, oski_value_t beta, oski_vecview_t y_view) |
Computes , where . | |
| int | oski_MatPowMult (const oski_matrix_t A_tunable, oski_matop_t opA, int power, oski_value_t alpha, const oski_vecview_t x_view, oski_value_t beta, oski_vecview_t y_view, oski_vecview_t T_view) |
Computes a power of a matrix times a vector, or . | |
| int | oski_MatTrisolve (const oski_matrix_t T_tunable, oski_matop_t opT, oski_value_t alpha, oski_vecview_t x_view) |
Computes , where is a triangular matrix. | |
| int oski_MatMult | ( | const oski_matrix_t | A_tunable, |
| oski_matop_t | opA, | ||
| oski_value_t | alpha, | ||
| const oski_vecview_t | x_view, | ||
| oski_value_t | beta, | ||
| const oski_vecview_t | y_view | ||
| ) |
Computes
, where
.
| [in] | A_tunable | Sparse matrix object, . |
| [in] | opA | Specifies the transpose operation, . |
| [in] | alpha | Scalar multiplier, . |
| [in] | x_view | Vector view object, . |
| [in] | beta | Scalar multiplier, . |
| [in,out] | y_view | Vector view object, . |
References ERR_BAD_VECVIEW, ERR_NOT_IMPLEMENTED, oski_matstruct_t::input_mat, INVALID_ID, MACRO_TO_STRING, MatReprMult, OSKI_ERR, OSKI_ERR_BAD_VEC, OSKI_ERR_NOT_IMPLEMENTED, OSKI_KERNEL_MatMult, OSKI_MATTYPEID_METHOD, oski_ReadElapsedTime(), oski_RecordCall, oski_RestartTimer(), oski_StopTimer(), oski_matstruct_t::props, oski_matspecific_t::repr, oski_matstruct_t::timer, oski_matstruct_t::trace, oski_matstruct_t::tuned_mat, and oski_matspecific_t::type_id.
| int oski_MatMultAndMatTransMult | ( | const oski_matrix_t | A_tunable, |
| oski_value_t | alpha, | ||
| const oski_vecview_t | x_view, | ||
| oski_value_t | beta, | ||
| oski_vecview_t | y_view, | ||
| oski_matop_t | op, | ||
| oski_value_t | omega, | ||
| const oski_vecview_t | w_view, | ||
| oski_value_t | zeta, | ||
| oski_vecview_t | z_view | ||
| ) |
Computes
and
, where
.
| [in] | A_tunable | Sparse matrix object, . |
| [in] | op | Specifies the transpose operation, . |
| [in] | alpha | Scalar multiplier, . |
| [in] | x_view | Vector view object, . |
| [in] | beta | Scalar multiplier, . |
| [in] | y_view | Vector view object, . |
| [in] | omega | Scalar multiplier, . |
| [in] | w_view | Vector view object, . |
| [in] | zeta | Scalar multiplier, . |
| [in] | z_view | Vector view object, . |
References ERR_BAD_VECVIEW, INVALID_ID, MatMultAndMatTransMultDefault, OSKI_ERR, OSKI_ERR_BAD_VEC, OSKI_KERNEL_MatMultAndMatTransMult, OSKI_MATTYPEID_METHOD, oski_ReadElapsedTime(), oski_RecordCall, oski_matstruct_t::props, oski_matspecific_t::repr, oski_matstruct_t::timer, oski_matstruct_t::trace, oski_matstruct_t::tuned_mat, and oski_matspecific_t::type_id.
| int oski_MatPowMult | ( | const oski_matrix_t | A_tunable, |
| oski_matop_t | opA, | ||
| int | power, | ||
| oski_value_t | alpha, | ||
| const oski_vecview_t | x_view, | ||
| oski_value_t | beta, | ||
| oski_vecview_t | y_view, | ||
| oski_vecview_t | T_view | ||
| ) |
Computes a power of a matrix times a vector, or
.
| [in] | A_tunable | The matrix object . |
| [in] | opA | Transpose option, . |
| [in] | power | Non-negative matrix power . |
| [in] | alpha | Scalar multiplier . |
| [in] | x_view | Single vector object . |
| [in] | beta | Scalar multiplier . |
| [in,out] | y_view | Single vector object . |
| [in,out] | T_view | Multivector object consisting of column vectors in which to store intermediate results. |
and returns 0 on success, or an error code otherwise. References DefaultMatPowMult(), ERR_BAD_VECVIEW, oski_matstruct_t::input_mat, INVALID_ID, MACRO_TO_STRING, OSKI_ERR, OSKI_ERR_BAD_VEC, OSKI_KERNEL_MatPowMult, OSKI_MATTYPEID_METHOD, oski_ReadElapsedTime(), oski_RecordCall, oski_RestartTimer(), oski_StopTimer(), oski_matstruct_t::props, oski_matspecific_t::repr, oski_matstruct_t::timer, oski_matstruct_t::trace, oski_matstruct_t::tuned_mat, and oski_matspecific_t::type_id.
| int oski_MatTransMatMult | ( | const oski_matrix_t | A_tunable, |
| oski_ataop_t | op, | ||
| oski_value_t | alpha, | ||
| const oski_vecview_t | x_view, | ||
| oski_value_t | beta, | ||
| oski_vecview_t | y_view, | ||
| oski_vecview_t | t_view | ||
| ) |
Computes
, where
.
| [in] | A_tunable | Sparse matrix object, . |
| [in] | op | Specifies the transpose operation, . |
| [in] | alpha | Scalar multiplier, . |
| [in] | x_view | Vector view object, . |
| [in] | beta | Scalar multiplier, . |
| [in] | y_view | Vector view object, . |
| [in] | t_view | Vector view object, . The caller may set t_view == INVALID_VEC if no intermediate result is desired. |
References ERR_BAD_VECVIEW, ERR_NOT_IMPLEMENTED, INVALID_ID, MACRO_TO_STRING, MatTransMatMultDefault, OSKI_ERR, OSKI_ERR_BAD_VEC, OSKI_KERNEL_MatTransMatMult, OSKI_MATTYPEID_METHOD, oski_ReadElapsedTime(), oski_RecordCall, oski_RestartTimer(), oski_StopTimer(), oski_matstruct_t::props, oski_matspecific_t::repr, oski_matstruct_t::timer, oski_matstruct_t::trace, oski_matstruct_t::tuned_mat, and oski_matspecific_t::type_id.
| int oski_MatTrisolve | ( | const oski_matrix_t | T, |
| oski_matop_t | opT, | ||
| oski_value_t | alpha, | ||
| oski_vecview_t | x | ||
| ) |
Computes
, where
is a triangular matrix.
| [in] | T_tunable | Triangular sparse matrix object, . |
| [in] | opT | Specifies the transpose operation, . |
| [in] | alpha | Scalar multiplier, . |
| [in,out] | x_view | Vector view object, . |
References ERR_BAD_VECVIEW, ERR_NOT_IMPLEMENTED, oski_matstruct_t::input_mat, INVALID_ID, MACRO_TO_STRING, OSKI_ERR, OSKI_ERR_BAD_VEC, OSKI_ERR_NOT_IMPLEMENTED, OSKI_KERNEL_MatTrisolve, OSKI_MATTYPEID_METHOD, oski_ReadElapsedTime(), oski_RecordCall, oski_RestartTimer(), oski_StopTimer(), oski_matstruct_t::props, oski_matspecific_t::repr, oski_matstruct_t::timer, oski_matstruct_t::trace, oski_matstruct_t::tuned_mat, and oski_matspecific_t::type_id.
1.7.6.1