This functions are used in all Torch package for creating and handling classes.
The most interesting function is probably torch.class()
which allows
the user to create easily new classes. torch.typename()
might
also be interesting to check what is the class of a given Torch object.
The other functions are more for advanced users.
[metatable] torch.class(name, [parentName])
[string] torch.typename(object)
[table] torch.newmetatable(name, parentName, constructor)
[function] torch.factory(name)
[table] torch.getmetatable(string)
[boolean] torch.isequal(object1, object2)
torch.setenv(function or userdata, table)
[table] torch.getenv(function or userdata)
[number] torch.pointer(object)