tmath::LuaMatrix Class Reference

internal More...

#include <lua_matrix.hpp>

Collaboration diagram for tmath::LuaMatrix:

Collaboration graph
[legend]

List of all members.

Public Types

typedef size_t TBigIndex
typedef int TIndex

Public Member Functions

template<typename OtherDerived>
void fastInsertBlock (const TIndex &row, const TIndex &col, const Eigen::MatrixBase< OtherDerived > &block)
TBigIndex indexFromRowCol (const TIndex &row, const TIndex &col) const
 translates the given matrix index to a vector index
 LuaMatrix (Matrix &mat)
 constructor
void vectorIndexToMatrixIndex (const TBigIndex &idx, TIndex &row, TIndex &col) const
 translates the given vector index into a matrix index
virtual ~LuaMatrix ()
 destructor

Static Public Member Functions

static int lua_index (lua_State *L)
static int lua_newindex (lua_State *L)
static void lua_registerClass (lua_State *L)

Protected Member Functions

const Matrixmatrix () const
Matrixmatrix ()

Protected Attributes

Matrixm_matrix


Detailed Description

internal

A helper class which provides methods for class 'Matrix' that are used by the Lua interpreter


Member Function Documentation

template<typename OtherDerived>
void tmath::LuaMatrix::fastInsertBlock ( const TIndex &  row,
const TIndex &  col,
const Eigen::MatrixBase< OtherDerived > &  block 
) [inline]

inserts the given expression into the matrix. It is only allowed to append columns if the original matrix is too small. Appending of rows is only allowed for column vectors.

int tmath::LuaMatrix::lua_index ( lua_State *  L  )  [static]

replaces the old __index routine of 'Matrix' for extra functionality

int tmath::LuaMatrix::lua_newindex ( lua_State *  L  )  [static]

replaces the old __newindex routine of 'Matrix' for extra functionality

static void tmath::LuaMatrix::lua_registerClass ( lua_State *  L  )  [static]

modifies the SWIG-LUA module, replaces __index, __newindex, etc.


The documentation for this class was generated from the following files:

Generated on Wed Nov 17 17:36:01 2010 for 'tmath' Module Programming Interface by  doxygen 1.5.6