- Manual Scilab
- API Scilab
- Scilab Gateway API
- How to
- CheckColumn
- CheckDimProp
- CheckDims
- CheckLength
- CheckLhs
- CheckRhs
- CheckRow
- CheckSameDims
- CheckScalar
- CheckSquare
- CheckVector
- CreateListVarFrom
- CreateListVarFromPtr
- CreateVar
- FindOpt
- FirstOpt
- GetListRhsVar
- GetRhsVar
- GetType
- IsOpt
- Lhs
- LhsVar
- NumOpt
- OverLoad
- Rhs
- Scierror
- Scilab C Types
- get_optionals
- istk
- sci_types
- sciprint
- stk
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
However, this page did not exist in the previous stable version.
CheckSameDims
C interface function which checks if two parameters send to the C function have the same size
Calling Sequence
CheckSameDims(StackPos_var1,StackPos_var2,m_var1,n_var1,m_var2,n_var2)
Arguments
- StackPos_var1
the position in the Scilab memory of the first parameter for which we want to perform the check (input parameter)
- StackPos_var2
the position in the Scilab memory of the second parameter for which we want to perform the check (input parameter)
- m_var1
the number of lines of the parameter at position StackPos_var1 in the Scilab memory
- n_var1
the number of columns of the parameter at position StackPos_var1 in the Scilab memory
- m_var2
the number of lines of the parameter at position StackPos_var2 in the Scilab memory
- n_var2
the number of columns of the parameter at position StackPos_var2 in the Scilab memory
Description
C interface function which checks if two parameters send to the C function have the same size. You must include stack-c.h to benefit from this function. If the test fails, we return from the C interface and an adequate error message is printed in the Scilab console.
WARNING: This API is deprecated from Scilab 5.2.0 and is going to be removed with Scilab 6.0. Please use API Scilab (the new Scilab API).
Examples
In this example, the C interface function takes one input parameters and prints the integer corresponding to the type of the variable sent as parameter in the Scilab console.
See Also
<< CheckRow | Scilab Gateway API | CheckScalar >> |