Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update fm2dAniso.cpp #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 34 additions & 1 deletion matlab/toolbox_graph/mex/fm2dAniso.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
#include "fm2dAniso.h"

// PBR - MKR 20220503
// old prototype in /Applications/MATLAB_R2021b.app/extern/include/matrix.h
// LIBMMWMATRIX_PUBLISHED_API_EXTERN_C mxArray *mxCreateNumericArray(mwSize ndim, const mwSize *dims, mxClassID classid, mxComplexity flag);
// type of param 2 not correct: old = const mwSize *dims new = const int dims[3]
#undef mxCreateNumericArray
LIBMMWMATRIX_PUBLISHED_API_EXTERN_C mxArray * mxCreateNumericArray(mwSize ndim, const int dims[3], mxClassID classid, mxComplexity flag);
LIBMMWMATRIX_PUBLISHED_API_EXTERN_C mxArray * mxCreateNumericArray(mwSize ndim, const int dims[3], mxClassID classid, mxComplexity flag){
return mxCreateNumericArray_730(ndim,(const mwSize *)dims,classid,flag);
}


// PBR - MKR 20220503
// old prototype in /Applications/MATLAB_R2021b.app/extern/include/matrix.h
// LIBMMWMATRIX_PUBLISHED_API_EXTERN_C const mwSize *mxGetDimensions(const mxArray *pa);
// type of return not correct: old = const mwSize * new = const int*
#undef mxGetDimensions
LIBMMWMATRIX_PUBLISHED_API_EXTERN_C const int *mxGetDimensions(const mxArray *pa);
LIBMMWMATRIX_PUBLISHED_API_EXTERN_C const int *mxGetDimensions(const mxArray *pa) {
return (const int*)mxGetDimensions_730(pa);
}

// PBR - MKR 20220503
// old prototype in /Applications/MATLAB_R2021b.app/extern/include/matrix.h
// LIBMMWMATRIX_PUBLISHED_API_EXTERN_C int mxSetDimensions(mxArray *pa, const mwSize *pdims, mwSize ndims);
// type of param 2 not correct: old = const mwSize *dims new = const int *dims
#undef mxSetDimensions
LIBMMWMATRIX_PUBLISHED_API_EXTERN_C int mxSetDimensions(mxArray *pa, const int *pdims, mwSize ndims);
LIBMMWMATRIX_PUBLISHED_API_EXTERN_C int mxSetDimensions(mxArray *pa, const int *pdims, mwSize ndims) {
return mxSetDimensions_730(pa, (const mwSize *)pdims, ndims);
}



void mexFunction( int nlhs, mxArray *plhs[],
int nrhs, const mxArray*prhs[] )
{
Expand Down Expand Up @@ -90,4 +123,4 @@ void mexFunction( int nlhs, mxArray *plhs[],
DELETEARRAY(Trial);
DELETEARRAY(Tree);
return;
}
}