BeBOP Optimized Sparse Kernel Interface Library  1.0.1h
Defines | Typedefs | Functions

Block compressed sparse row (BCSR) implementation. More...

#include <oski/matmodexport.h>

Go to the source code of this file.

Defines

#define INC_OSKI_BCSR_MODULE_H
 BCSR/module.h included.
Name mangling.
#define oski_BCSR_MatMult_funcpt   MANGLE_(oski_BCSR_MatMult_funcpt)
#define oski_BCSR_MatTransMatMult_funcpt   MANGLE_(oski_BCSR_MatTransMatMult_funcpt)
#define BCSR_GetKernel   MANGLE_(BCSR_GetKernel)

Typedefs

typedef int(* oski_BCSR_MatMult_funcpt )(const oski_matBCSR_t *A, oski_matop_t opA, oski_value_t alpha, const oski_vecview_t x_view, oski_vecview_t y_view)
 Pointer to a BCSR SpMV kernel implementation.
typedef int(* oski_BCSR_MatTransMatMult_funcpt )(const oski_matBCSR_t *A, oski_value_t alpha, const oski_vecview_t x_view, oski_vecview_t y_view, oski_vecview_t t_view)
 Pointer to a BCSR sparse $A^TAx$ implementation.

Functions

void * BCSR_GetKernel (const oski_matBCSR_t *A, const char *name)
 Returns a pointer to the requested submodule method.

Detailed Description

Block compressed sparse row (BCSR) implementation.


Define Documentation

BCSR/module.h included.


Typedef Documentation

typedef int(* oski_BCSR_MatMult_funcpt)(const oski_matBCSR_t *A, oski_matop_t opA, oski_value_t alpha, const oski_vecview_t x_view, oski_vecview_t y_view)

Pointer to a BCSR SpMV kernel implementation.

typedef int(* oski_BCSR_MatTransMatMult_funcpt)(const oski_matBCSR_t *A, oski_value_t alpha, const oski_vecview_t x_view, oski_vecview_t y_view, oski_vecview_t t_view)

Pointer to a BCSR sparse $A^TAx$ implementation.


Function Documentation

void* BCSR_GetKernel ( const oski_matBCSR_t A,
const char *  name 
)

Returns a pointer to the requested submodule method.

Returns a pointer to the requested submodule method.

Parameters:
[in]AAn $r\times c$ BCSR matrix representation.
[in]nameName of the method to load from the $r\times c$ submodule.
Returns:
A pointer to the requested method, or NULL if none could be found.

References tagBebop_matBCSR_t::col_block_size, tagBebop_matBCSR_t::mod_cached, tagBebop_matBCSR_t::mod_name, oski_Free, oski_LoadModule(), oski_LookupModuleMethod(), oski_StringPrintf(), and tagBebop_matBCSR_t::row_block_size.