Implement mxIsScalar() for MATLAB < R2015a (8.5)
parent
7c39b12b7b
commit
e96f180c50
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright © 2009-2014 Dynare Team
|
||||
* Copyright © 2009-2019 Dynare Team
|
||||
*
|
||||
* This file is part of Dynare.
|
||||
*
|
||||
|
@ -40,4 +40,8 @@
|
|||
} while (0)
|
||||
#endif
|
||||
|
||||
#if defined(MATLAB_MEX_FILE) && MATLAB_VERSION < 0x0805
|
||||
# define mxIsScalar(x) (mxGetM(x) == 1 && mxGetN(x) == 1)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue