convert.c File Reference

Conversion between CSR and MATTYPE_TEMPLATE format. More...

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <oski/config.h>
#include <oski/common.h>
#include <oski/modloader.h>
#include <oski/matrix.h>
#include <oski/CSR/format.h>
#include <oski/MATTYPE_TEMPLATE/format.h>
#include <oski/MATTYPE_TEMPLATE/module.h>
#include <oski/xforms_internal.h>

Functions

void * oski_CreateMatReprFromCSR (const oski_matCSR_t *mat, const oski_matcommon_t *props,...)
 Method: Instantiate from an existing CSR representation.
oski_matCSR_toski_ConvertMatReprToCSR (const void *mat, const oski_matcommon_t *props)
 Method: Convert to CSR format.
void oski_DestroyMatRepr (void *mat)
 Method: Destroy matrix type-specific representation.
void * oski_CopyMatRepr (const void *mat, const oski_matcommon_t *props)
 Method: Duplicate a matrix representation.
int oski_CreateLuaMatReprFromCSR (lua_State *L)
 The MATTYPE_TEMPLATE implementation expects the following arguments on the stack:
  1. Destination matrix type ('MATTYPE_TEMPLATE')
  2. Source matrix ('CSR')
  3. -ADDITIONAL-OPTIONS-IF-ANY-HERE@.


Detailed Description

Conversion between CSR and MATTYPE_TEMPLATE format.


Function Documentation

int oski_CreateLuaMatReprFromCSR ( lua_State *  L  ) 

The MATTYPE_TEMPLATE implementation expects the following arguments on the stack:

  1. Destination matrix type ('MATTYPE_TEMPLATE')
  2. Source matrix ('CSR')
  3. -ADDITIONAL-OPTIONS-IF-ANY-HERE@.

Matrix-type specific method to convert from a CSR matrix, with arguments passed on the Lua stack.

References ERR_NOT_IMPLEMENTED, and OSKI_ERR_NOT_IMPLEMENTED.


Generated on Fri Apr 8 22:35:19 2011 for BeBOP Optimized Sparse Kernel Interface Library by  doxygen 1.5.9