module.c File Reference


Detailed Description

Modified block compressed sparse row (MBCSR) module.

#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)
 Returns a pointer to the requested submodule method.
void MBCSR_InitSubVecView (const oski_vecview_t x, oski_index_t row_start, oski_index_t len, oski_vecview_t x_sub)
 Returns a subset of the rows of a vector view.


Function Documentation

void* MBCSR_GetSubmatKernel const oski_submatMBCSR_t A,
const char *  name
 

Returns a pointer to the requested submodule method.

Parameters:
[in] A An $r\times c$ MBCSR matrix representation.
[in] name Name 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.

void MBCSR_InitSubVecView const oski_vecview_t  x,
oski_index_t  row_start,
oski_index_t  len,
oski_vecview_t  x_sub
 

Returns a subset of the rows of a vector view.

Parameters:
[in] x A vector view $x$.
[in] row_start Row offset in x (0-based).
[in] len Number of rows to select.
[in,out] x_sub Output view.
Precondition:
x_sub != INVALID_VEC. If x == INVALID_VEC, then x_sub is simply initialized to a zero vector.
Note:
This routine makes a shallow copy of the source vector view x, and so the caller should not destroy x_sub by a call to oski_DestroyVecView(). We recommend the caller allocate x_sub as a oski_vecstruct_t object on the stack.


Generated on Wed Sep 19 16:41:23 2007 for BeBOP Optimized Sparse Kernel Interface Library by  doxygen 1.4.6