luaT provides an API to interface Lua and C in Torch packages. It defines a concept of classes to Lua for Torch, and provides a mechanism to easily handle these Lua classes from C.

It additionally provides few functions that luaL should have defined, and redefine some luaL functions for better type error printing when using luaT classes.


  1. Memory functions
  2. Class creation and basic handling