An interface between Torch and Matlab
C Lua Objective-C
Latest commit 0d02b62 Aug 7, 2014 @clementfarabet Merge pull request #4 from szagoruyko/master
fixed memory leak for list of tensore save
Permalink
Failed to load latest commit information.
mattorchlive Removed invalid statements from example.lua Aug 28, 2011
CMakeLists.txt Rockspec. Nov 23, 2012
FindMatlab.cmake
README.txt README Jul 8, 2013
init.lua Newpack Feb 6, 2012
mattorch-1.0-0.rockspec New rock Jul 4, 2013
mattorch.c fixed memory leak for list of tensore save Aug 6, 2014
mattorchlive.c Fixed the way variables are returned (mattorchlive). Aug 30, 2011
mattorchlive.h Added extra stuff to matlab wrapper. Aug 28, 2011
test.mat GitHub for Mac: Throw-away commit. Jul 1, 2011

README.txt

DEPENDENCIES:
Torch7 (www.torch.ch)

INSTALL:
$ torch-rocks install mattorch

USE:
$ torch
> require 'mattorch'
-- save:
> tensor1 = torch.Tensor(...)
> tensor2 = torch.Tensor(...)
> tensor3 = torch.Tensor(...)
> mattorch.save('output.mat', tensor1)
-- OR
> list = {myvar = tensor1, othervar = tensor2, thisvar = tensor3}
> mattorch.save('output.mat', list) ]]

-- load:
> loaded = mattorch.load('input.mat')