scilab: rename matrix typemaps named parameters
This commit is contained in:
parent
a531ea2f27
commit
3ac0dc2be5
7 changed files with 134 additions and 134 deletions
|
|
@ -2,14 +2,14 @@
|
|||
|
||||
%include matrix.i
|
||||
|
||||
%apply (double *matrixIn, int matrixInRowCount, int matrixInColCount) { (double *inputMatrix, int nbRow, int nbCol) }
|
||||
%apply (double **matrixOut, int *matrixOutRowCount, int *matrixOutColCount) { (double **resultMatrix, int *nbRowRes, int *nbColRes) }
|
||||
%apply (double *IN, int IN_ROWCOUNT, int IN_COLCOUNT) { (double *inputMatrix, int nbRow, int nbCol) }
|
||||
%apply (double **OUT, int *OUT_ROWCOUNT, int *OUT_COLCOUNT) { (double **resultMatrix, int *nbRowRes, int *nbColRes) }
|
||||
|
||||
%apply (int *matrixIn, int matrixInRowCount, int matrixInColCount) { (int *inputMatrix, int nbRow, int nbCol) }
|
||||
%apply (int **matrixOut, int *matrixOutRowCount, int *matrixOutColCount) { (int **resultMatrix, int *nbRowRes, int *nbColRes) }
|
||||
%apply (int *IN, int IN_ROWCOUNT, int IN_COLCOUNT) { (int *inputMatrix, int nbRow, int nbCol) }
|
||||
%apply (int **OUT, int *OUT_ROWCOUNT, int *OUT_COLCOUNT) { (int **resultMatrix, int *nbRowRes, int *nbColRes) }
|
||||
|
||||
%apply (char **matrixIn, int matrixInSize) { (char **inputVector, int size) }
|
||||
%apply (char ***matrixOut, int *matrixOutSize) { (char ***resultVector, int *sizeRes) }
|
||||
%apply (char **IN, int IN_SIZE) { (char **inputVector, int size) }
|
||||
%apply (char ***OUT, int *OUT_SIZE) { (char ***resultVector, int *sizeRes) }
|
||||
|
||||
%inline %{
|
||||
extern double sumDoubleMatrix(double *inputMatrix, int nbRow, int nbCol);
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@
|
|||
%include matrix.i
|
||||
|
||||
%define %use_matrix_apply(TYPE...)
|
||||
%apply (TYPE *matrixIn, int matrixInRowCount, int matrixInColCount) { (TYPE *matrix, int nbRow, int nbCol) }
|
||||
%apply (TYPE **matrixOut, int *matrixOutRowCount, int *matrixOutColCount) { (TYPE **matrixRes, int *nbRowRes, int *nbColRes) }
|
||||
%apply (TYPE *matrixIn, int matrixInSize) { (TYPE *matrix, int size) }
|
||||
%apply (TYPE **matrixOut, int *matrixOutSize) { (TYPE **matrixRes, int *sizeRes) }
|
||||
%apply (TYPE *IN, int IN_ROWCOUNT, int IN_COLCOUNT) { (TYPE *matrix, int nbRow, int nbCol) }
|
||||
%apply (TYPE **OUT, int *OUT_ROWCOUNT, int *OUT_COLCOUNT) { (TYPE **matrixRes, int *nbRowRes, int *nbColRes) }
|
||||
%apply (TYPE *IN, int IN_SIZE) { (TYPE *matrix, int size) }
|
||||
%apply (TYPE **OUT, int *OUT_SIZE) { (TYPE **matrixRes, int *sizeRes) }
|
||||
%enddef
|
||||
|
||||
%use_matrix_apply(int);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue