ParaMonte MATLAB 3.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation. |
Go to the source code of this file.
Functions | |
function | istype (in varval, in vartype, in varsize) |
Return true if and only if the input varval conforms with the specified input type vartype and the specified maximum size varsize . Otherwise, return false . More... | |
function istype | ( | in | varval, |
in | vartype, | ||
in | varsize | ||
) |
Return true
if and only if the input varval
conforms with the specified input type vartype
and the specified maximum size varsize
. Otherwise, return false
.
Beware that this algorithm converts input values of type char
to string
before further processing and type checking, that is, the types char
to string
are assumed to be conformable and compatible with each other, like most other sane languages.
[in] | varval | : The input value to be converted to namelist-compatible value. |
[in] | vartype | : The input scalar MATLAB string containing the expected type of the value given by the input varval .The following type-conformance rules apply:
|
[in] | varsize | : The input scalar MATLAB integer representing the maximum allowed size of the input value varval .(optional. If missing, the maximum length of the input varval will not be checked.) |
itis
: The output scalar MATLAB logical that is true
if and only if the input varval
conforms with the specified input type vartype
and the specified maximum size varsize
, otherwise, it is false
.
Possible calling interfaces ⛓
Example usage ⛓
Final Remarks ⛓
If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.
This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.