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:
parent
38f4edcdac
commit
7f778391e7
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue