Skip to content
Browse files

Add support for ruby 1.9 and matlab 7.3

  • Loading branch information...
1 parent d1cf1b0 commit e7061b3099be5d551a5384cfce988ae99752cc0c @morrifeldman morrifeldman committed Nov 9, 2012
Showing with 1,199 additions and 983 deletions.
  1. +3 −0 ext/matlab_api/matlab_api.i
  2. +1,195 −982 ext/matlab_api/matlab_api_wrap.c
  3. +1 −1 lib/matlab/driver/native/conversions.rb
View
3 ext/matlab_api/matlab_api.i
@@ -1,4 +1,7 @@
%module "matlab::driver::native::API"
+%typemap(in) mwSize {
+ $1 = NUM2INT($input);
+}
%include "carrays.i"
%{
/* Includes the header in the wrapper code */
View
2,177 ext/matlab_api/matlab_api_wrap.c
1,195 additions, 982 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
2 lib/matlab/driver/native/conversions.rb
@@ -93,7 +93,7 @@ module Matlab
class Matrix
# Converts the matrix into a MATLAB numeric matrix
def to_matlab
- matrix = Matlab::Driver::Native::API.mxCreateDoubleMatrix(m, n, Matlab::Driver::Native::API::MxREAL)
+ matrix = Matlab::Driver::Native::API.mxCreateDoubleMatrix_730(m, n, Matlab::Driver::Native::API::MxREAL)
double_array = Matlab::Driver::Native::API::DoubleArray.new(m * n)
index = 0

0 comments on commit e7061b3

Please sign in to comment.
Something went wrong with that request. Please try again.