#include <lua_matrix.hpp>

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 Matrix & | matrix () const |
| Matrix & | matrix () |
Protected Attributes | |
| Matrix & | m_matrix |
A helper class which provides methods for class 'Matrix' that are used by the Lua interpreter
| 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.
1.5.6