Functions | |
if (strcmp(cname,"float")) retval | |
elseif (strcmp(cname,"numeric")) retval | |
if (!retval &&isobject(x)) retval | |
endif endif endfunction | !assert (isa("char","float"), false)%!assert(isa(double(13) |
endif endif endfunction true | !assert (isa(single(13),"float"), true)%!assert(isa(int8(13) |
endif endif endfunction true false | !assert (isa(int16(13),"float"), false)%!assert(isa(int32(13) |
endif endif endfunction true false false | !assert (isa(int64(13),"float"), false)%!assert(isa(uint8(13) |
endif endif endfunction true false false false | !assert (isa(uint16(13),"float"), false)%!assert(isa(uint32(13) |
endif endif endfunction true false false false false | !assert (isa(uint64(13),"float"), false)%!assert(isa("char" |
endif endif endfunction true false false false false false | !assert (isa(double(13),"numeric"), true)%!assert(isa(single(13) |
endif endif endfunction true false false false false false true | !assert (isa(int8(13),"numeric"), true)%!assert(isa(int16(13) |
endif endif endfunction true false false false false false true true | !assert (isa(int32(13),"numeric"), true)%!assert(isa(int64(13) |
endif endif endfunction true false false false false false true true true | !assert (isa(uint8(13),"numeric"), true)%!assert(isa(uint16(13) |
endif endif endfunction true false false false false false true true true true | !assert (isa(uint32(13),"numeric"), true)%!assert(isa(uint64(13) |
Variables | |
function | retval |
endif persistent | float_classes = {"double", "single"} |
persistent | fnum_classes |
else | class_of_x = class (x) |
endif endif endfunction | float |
endif endif endfunction true false false false false | numeric |
endif endif endfunction true false false false false false true true true true !assert | ( | isa(uint32(13),"numeric") | , | |
true | ||||
) |
endif endif endfunction true false false false false false true true true !assert | ( | isa(uint8(13),"numeric") | , | |
true | ||||
) |
endif endif endfunction true false false false false false true true !assert | ( | isa(int32(13),"numeric") | , | |
true | ||||
) |
endif endif endfunction true false false false false false true !assert | ( | isa(int8(13),"numeric") | , | |
true | ||||
) |
endif endif endfunction true false false false false false !assert | ( | isa(double(13),"numeric") | , | |
true | ||||
) |
endif endif endfunction true false false false false !assert | ( | isa(uint64(13),"float") | , | |
false | ||||
) |
endif endif endfunction true false false false !assert | ( | isa(uint16(13),"float") | , | |
false | ||||
) |
endif endif endfunction true false false !assert | ( | isa(int64(13),"float") | , | |
false | ||||
) |
endif endif endfunction true false !assert | ( | isa(int16(13),"float") | , | |
false | ||||
) |
endif endif endfunction true !assert | ( | isa(single(13),"float") | , | |
true | ||||
) |
endif endif endfunction !assert | ( | isa("char","float") | , | |
false | ||||
) |
elseif | ( | strcmp(cname,"numeric") | ) |
if | ( | !retval && | isobjectx | ) |
if | ( | strcmp(cname,"float") | ) |
else class_of_x = class (x) |
endif endif endfunction true false false false float |
endif persistent float_classes = {"double", "single"} |
persistent fnum_classes |
Initial value:
{"double", "single", ... "uint8", "uint16", "uint32", "uint64", ... "int8", "int16", "int32", "int64"}
endif endif endfunction true false false false false false true true true true numeric |
retval |
Initial value:
isa (x, cname) if (nargin != 2) print_usage ()