BeBOP Optimized Sparse Kernel Interface Library  1.0.1h
Defines | Functions
xforms_internal.h File Reference

This header file isolates the Lua-dependent aspects of the tuning transform implementation from the core OSKI code. More...

#include <oski/matrix.h>
#include <oski/xforms.h>

Go to the source code of this file.

Defines

#define INC_OSKI_XFORMS_INTERNAL_H
 oski/xforms_internal.h included.
Name mangling.
#define oski_CreateLuaMatReprGenericFromCSR   MANGLE_(oski_CreateLuaMatReprGenericFromCSR)
#define oski_CreateLuaMatReprGeneric2IndexFromCSR   MANGLE_(oski_CreateLuaMatReprGeneric2IndexFromCSR)
#define oski_CreateLuaMatReprFromCSR   MANGLE_MOD_(oski_CreateLuaMatReprFromCSR)

Functions

int oski_CreateLuaMatReprGenericFromCSR (lua_State *L, const char *mattype)
 Routine to create a Lua matrix representation from a CSR representation for a simple matrix type.
int oski_CreateLuaMatReprGeneric2IndexFromCSR (lua_State *L, const char *mattype)
 Routine to create a Lua matrix representation from a CSR representation for a matrix type that, on creation, expects two integer index arguments.
int oski_CreateLuaMatReprFromCSR (lua_State *L)
 Matrix-type specific method to convert from a CSR matrix, with arguments passed on the Lua stack.

Detailed Description

This header file isolates the Lua-dependent aspects of the tuning transform implementation from the core OSKI code.

"Lua-dependent" includes dependencies on Lua-specific data structures (e.g., lua_State), for instance.


Define Documentation


Function Documentation

int oski_CreateLuaMatReprFromCSR ( lua_State *  L)

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

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

  1. Destination matrix type ('BCSR')
  2. Source matrix ('CSR')
  3. Row block size ('r')
  4. Column block size ('c')

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

  1. Destination matrix type ('MBCSR')
  2. Source matrix ('CSR')
  3. Row block size ('r')
  4. Column block size ('c')

Matrix-type specific method to convert from a CSR matrix, with arguments passed on the Lua 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.

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

References ERR_NOT_IMPLEMENTED, and OSKI_ERR_NOT_IMPLEMENTED.

int oski_CreateLuaMatReprGeneric2IndexFromCSR ( lua_State *  L,
const char *  mattype 
)

Routine to create a Lua matrix representation from a CSR representation for a matrix type that, on creation, expects two integer index arguments.

Routine to create a Lua matrix representation from a CSR representation for a matrix type that, on creation, expects two integer index arguments.

  1. Destination matrix type (e.g., 'MBCSR', 'BCSR', 'CB')
  2. Source matrix ('CSR')
  3. First index (e.g., the row block size 'r')
  4. Second index (e.g., the column block size 'c')

References ERR_BAD_ARG, oski_matlua_t::ind_type, MACRO_TO_STRING, oski_matlua_t::mat, oski_matlua_t::mattype_name, oski_DuplicateString(), oski_HandleError, OSKI_IND_ID, OSKI_MATTYPE_ID, OSKI_MATTYPE_METHOD, OSKI_VAL_ID, oski_matlua_t::props, oski_matspecific_t::repr, oski_matspecific_t::type_id, and oski_matlua_t::val_type.

int oski_CreateLuaMatReprGenericFromCSR ( lua_State *  L,
const char *  mattype 
)

Routine to create a Lua matrix representation from a CSR representation for a simple matrix type.

Routine to create a Lua matrix representation from a CSR representation for a simple matrix type.

  1. Destination matrix type (e.g., 'CSC', 'GCSR')
  2. Source matrix ('CSR')
Todo:
else: possible leak

References ERR_BAD_ARG, oski_matlua_t::ind_type, MACRO_TO_STRING, oski_matlua_t::mat, oski_matlua_t::mattype_name, oski_DuplicateString(), oski_HandleError, OSKI_IND_ID, OSKI_MATTYPE_ID, OSKI_MATTYPE_METHOD, OSKI_VAL_ID, oski_matlua_t::props, oski_matspecific_t::repr, oski_matspecific_t::type_id, and oski_matlua_t::val_type.