some fixes about example matrix2

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11991 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Baozeng Ding 2010-04-14 01:36:40 +00:00
commit 7f778391e7
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
%module matrixlib
%include "matrix.i"
extern double sumitems(double *, int, int);
%typemap (in) (int *numberOfRow, int *numberOfCol) {
%typemap (in, numinputs=0) (int *numberOfRow, int *numberOfCol) {
$1 = &iRowsOut;
$2 = &iColsOut;
}

View file

@ -4,7 +4,7 @@ exec loader.sce
myMatrix=[ 103 3 1 12;0 0 2043 1];
sumitems(myMatrix)
myOtherMatrix=getValues(1);
myOtherMatrix=getValues();
size(myOtherMatrix)
disp(myOtherMatrix);
exit