|
BeBOP Optimized Sparse Kernel Interface Library
1.0.1h
|
Modified block compressed sparse row (MBCSR) module. More...
#include <oski/config.h>#include <oski/common.h>#include <oski/mattypes.h>#include <oski/modloader.h>#include <oski/MBCSR/format.h>#include <oski/MBCSR/module.h>Functions | |
| const char * | oski_GetShortDesc (void) |
| Method: Returns a short string description of the module. | |
| const char * | oski_GetLongDesc (void) |
| Method: Returns a "long" string description of the module. | |
| void | oski_InitModule (void) |
| Method: Initialize the module. | |
| void | oski_CloseModule (void) |
| Method: Shutdown the module. | |
| void * | MBCSR_GetSubmatKernel (const oski_submatMBCSR_t *A, const char *name) |
This routine loads the requested method if it exists, and caches the module if it has not yet been loaded. | |
| void | MBCSR_InitSubVecView (const oski_vecview_t x, oski_index_t row_start, oski_index_t len, oski_vecview_t x_sub) |
Initializes the fields of an allocated vector view to point to a subset of the rows of an existing view . | |
Modified block compressed sparse row (MBCSR) module.
| void* MBCSR_GetSubmatKernel | ( | const oski_submatMBCSR_t * | A, |
| const char * | name | ||
| ) |
This routine loads the requested method if it exists, and caches the
module if it has not yet been loaded.
Returns a pointer to the requested submodule method.
| [in] | A | An MBCSR matrix representation. |
| [in] | name | Name of the method to load from the submodule. |
References tagOski_submatMBCSR_t::c, tagOski_submatMBCSR_t::mod_cached, tagOski_submatMBCSR_t::mod_name, oski_Free, oski_LoadModule(), oski_LookupModuleMethod(), oski_StringPrintf(), and tagOski_submatMBCSR_t::r.
| void MBCSR_InitSubVecView | ( | const oski_vecview_t | x, |
| oski_index_t | row_start, | ||
| oski_index_t | len, | ||
| oski_vecview_t | x_sub | ||
| ) |
Initializes the fields of an allocated vector view
to point to a subset of the rows of an existing view
.
Returns a subset of the rows of a vector view.
| [in] | x | A vector view . |
| [in] | row_start | Row offset in x (0-based). |
| [in] | len | Number of rows to select. |
| [in,out] | x_sub | Output view. |
References INVALID_VEC, oski_vecstruct_t::num_rows, oski_CopyMem, oski_ZeroMem(), oski_vecstruct_t::rowinc, and oski_vecstruct_t::val.
1.7.6.1