mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
30 lines
428 B
Plaintext
30 lines
428 B
Plaintext
NAME
|
|
ismat - whether a value is a matrix
|
|
|
|
SYNOPSIS
|
|
ismat(x)
|
|
|
|
TYPES
|
|
x any, &any
|
|
|
|
return int
|
|
|
|
DESCRIPTION
|
|
Determine if x is a matrix. This function will return 1 if x is
|
|
a matrix, 0 otherwise.
|
|
|
|
EXAMPLE
|
|
> mat a[2]
|
|
> print ismat(a), ismat(1)
|
|
1 0
|
|
|
|
LIMITS
|
|
none
|
|
|
|
LIBRARY
|
|
none
|
|
|
|
SEE ALSO
|
|
isassoc, isfile, isident, isint, islist, isnull, isnum, isobj,
|
|
isreal, isstr, issimple, istype
|